Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
Always use the latest stable version of Go for CI.
  • Loading branch information
mikispag authored Sep 1, 2023
1 parent 6a7f2d0 commit 45438f1
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
cache: false
go-version: 'stable'
- name: lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
version: 'latest'
only-new-issues: true
args: --issues-exit-code=1 --out-format=colored-line-number

Expand Down Expand Up @@ -54,7 +53,7 @@ jobs:
strategy:
fail-fast: false
matrix:
goversion: ["1.21"]
goversion: ['stable']

name: Build & Test (Linux, Go ${{ matrix.goversion }})
needs: [lint]
Expand All @@ -64,7 +63,7 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}

Expand All @@ -78,7 +77,7 @@ jobs:
strategy:
fail-fast: false
matrix:
goversion: ["1.21"]
goversion: ['stable']

name: Build & Test (Windows, Go ${{ matrix.goversion }})
needs: [lint]
Expand All @@ -88,7 +87,7 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}

Expand All @@ -102,7 +101,7 @@ jobs:
strategy:
fail-fast: false
matrix:
goversion: ["1.21"]
goversion: ['stable']

name: Build & Test (MacOS, Go ${{ matrix.goversion }})
needs: [lint]
Expand All @@ -112,7 +111,7 @@ jobs:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}

Expand All @@ -131,4 +130,4 @@ jobs:
- name: Check all tests passed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
jobs: ${{ toJSON(needs) }}

0 comments on commit 45438f1

Please sign in to comment.