Skip to content

Commit

Permalink
Update github CI
Browse files Browse the repository at this point in the history
- update to go-1.21.3
- rename master to main
- use setup-go@v4 / checkout@v3 for simpler and faster (uses caching)
  • Loading branch information
torcolvin committed Oct 17, 2023
1 parent f184aec commit f45d672
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,25 @@ name: ci
on:
push:
branches:
- 'master'
- 'main'
- 'release/*'
- 'CBG*'
- 'ci-*'
- 'feature*'
pull_request:
branches:
- 'master'
- 'main'
- 'release/*'

jobs:
addlicense:
name: addlicense
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.21.1
go-version: 1.21.3
- run: go install github.com/google/addlicense@latest
- uses: actions/checkout@v3
- run: addlicense -check -f licenses/addlicense.tmpl .
Expand All @@ -40,11 +41,10 @@ jobs:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Setup Go Faster
uses: WillAbides/setup-go-faster@v1.8.0
with:
go-version: 1.21.1
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.21.3
- name: Build
run: go build -v "./..."
- name: Run Tests
Expand All @@ -59,10 +59,8 @@ jobs:
golangci:
name: lint
runs-on: ubuntu-latest

steps:
- uses: WillAbides/setup-go-faster@v1.8.0
with:
go-version: 1.21.1
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand All @@ -72,10 +70,10 @@ jobs:
test-race:
runs-on: ubuntu-latest
steps:
- uses: WillAbides/setup-go-faster@v1.8.0
with:
go-version: 1.21.1
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.21.3
- name: Run Tests
run: go test -race -timeout=30m -count=1 -json -v "./..." | tee test.json | jq -s -jr 'sort_by(.Package,.Time) | .[].Output | select (. != null )'
shell: bash
Expand Down

0 comments on commit f45d672

Please sign in to comment.