diff --git a/.github/workflows/pr_build.yaml b/.github/workflows/pr_build.yaml index 055f275..053b905 100644 --- a/.github/workflows/pr_build.yaml +++ b/.github/workflows/pr_build.yaml @@ -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 @@ -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 @@ -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: @@ -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: @@ -61,6 +68,9 @@ jobs: run: make lint test-windows: + strategy: + matrix: + GO_VERSION: ["1.21", "1.23rc2"] runs-on: windows-2022 defaults: run: @@ -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: