Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: force on latest go version & cleanup jobs #353

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@ on:
jobs:
static-checks:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.*' ]
name: Static checks
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
go-version: 1.x
check-latest: true
- name: WriteGoList
run: go list -json -m all > go.list
- name: Nancy
uses: sonatype-nexus-community/nancy-github-action@main
uses: sonatype-nexus-community/nancy-github-action@main
7 changes: 4 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.*
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: actions/setup-go@v4
with:
go-version: 1.x
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,27 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.20', '1.*' ]
go: [ '1.20', '1.x' ]
name: Tests
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Get dependencies
run: go get -v -t -d ./...
check-latest: true
- name: Test
run: CGO_ENABLED=1 go test -race ./...
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.*' ]
name: Coverage Report
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Get dependencies
run: go get -v -t -d ./...
go-version: 1.x
check-latest: true
- name: Test
run: |
CGO_ENABLED=1 go run gotest.tools/gotestsum@v1.7.0 --junitfile test.xml --format testname -- -coverprofile coverage.txt -race ./...
Expand All @@ -64,18 +59,14 @@ jobs:
path: code-coverage-results.md
static-checks:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.*' ]
name: Static checks
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Get dependencies
run: go get -v -t -d ./...
go-version: 1.x
check-latest: true
- name: Go Vet
run: go vet ./...
- name: Go Fmt
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/semanticore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ on:
jobs:
semanticore:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.*' ]
name: Semanticore
steps:
- uses: actions/checkout@v3
Expand All @@ -18,7 +15,8 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
go-version: 1.x
check-latest: true
- name: Semanticore
run: go run github.com/aoepeople/semanticore@v0
env:
Expand Down