Skip to content

Commit

Permalink
GitHub Actions: Test Go 1.23rc2
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo Landau <hl@messier42.com>
  • Loading branch information
hlandau committed Aug 7, 2024
1 parent b813997 commit 2e80c5c
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/pr_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: PR Build
on:
pull_request: {}
workflow_dispatch: {}
env:
GO_VERSION: 1.21
jobs:
lint-linux:
strategy:
matrix:
GO_VERSION: ["1.21", "1.23rc2"]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -15,11 +16,14 @@ jobs:
with:
cache: true
cache-dependency-path: v2/go.sum
go-version: ${{ env.GO_VERSION }}
go-version: ${{ matrix.GO_VERSION }}
- name: Lint
run: make lint

test-linux:
strategy:
matrix:
GO_VERSION: ["1.21", "1.23rc2"]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -29,11 +33,14 @@ jobs:
with:
cache: true
cache-dependency-path: v2/go.sum
go-version: ${{ env.GO_VERSION }}
go-version: ${{ matrix.GO_VERSION }}
- name: Test
run: make test

lint-windows:
strategy:
matrix:
GO_VERSION: ["1.21", "1.23rc2"]
runs-on: windows-2022
defaults:
run:
Expand All @@ -46,7 +53,7 @@ jobs:
with:
cache: true
cache-dependency-path: v2/go.sum
go-version: ${{ env.GO_VERSION }}
go-version: ${{ matrix.GO_VERSION }}
- name: Install msys2
uses: msys2/setup-msys2@v2
with:
Expand All @@ -61,6 +68,9 @@ jobs:
run: make lint

test-windows:
strategy:
matrix:
GO_VERSION: ["1.21", "1.23rc2"]
runs-on: windows-2022
defaults:
run:
Expand All @@ -73,7 +83,7 @@ jobs:
with:
cache: true
cache-dependency-path: v2/go.sum
go-version: ${{ env.GO_VERSION }}
go-version: ${{ matrix.GO_VERSION }}
- name: Install msys2
uses: msys2/setup-msys2@v2
with:
Expand Down

0 comments on commit 2e80c5c

Please sign in to comment.