Skip to content

Commit

Permalink
CI: Update ci workflow (go-mysql-org#868)
Browse files Browse the repository at this point in the history
* CI: Update ci workflow

* fixup

* Update golangci-lint-action version

* Looks like Ubuntu 24.04 isn't ready yet

---------

Co-authored-by: lance6716 <[email protected]>
  • Loading branch information
dveeden and lance6716 authored May 7, 2024
1 parent 007f306 commit 2bd4573
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
test:
strategy:
matrix:
go: [ "1.21", "1.20", "1.19" ]
go: [ "1.22", "1.21" ]
os: [ ubuntu-22.04, ubuntu-20.04 ]
name: Tests Go ${{ matrix.go }} on ${{ matrix.os }} # This name is used in main branch protection rules
runs-on: ${{ matrix.os }}
Expand All @@ -31,11 +31,11 @@ jobs:
run: |
sudo apt-get install -y make gcc
- name: Install Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v4
- name: Run tests
run: |
# separate test to avoid RESET MASTER conflict
Expand All @@ -46,9 +46,9 @@ jobs:
name: golangci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=3m
Expand All @@ -65,10 +65,10 @@ jobs:
run: |
sudo apt-get install -y make gcc
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: "1.22"
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v4
- name: Build on ${{ matrix.os }}/${{ matrix.arch }}
run: GOARCH=${{ matrix.arch }} GOOS=${{ matrix.os }} go build ./...

0 comments on commit 2bd4573

Please sign in to comment.