diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8ccede8..ff9c4ff 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -5,18 +5,19 @@ on: branches: [main] pull_request: -env: - GO_VERSION: "1.22" - jobs: lint-test: runs-on: ubuntu-latest + strategy: + matrix: + go: ["1.22", "stable"] steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: ${{ env.GO_VERSION }} + go-version: ${{ matrix.go }} - name: Lint + if: matrix.go == 'stable' uses: golangci/golangci-lint-action@v8 with: version: v2.15.0 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7b41dda..fd414e3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,7 +10,7 @@ permissions: env: # Path to the main package. Use "./cmd/" if you keep a cmd/ layout. MAIN_PACKAGE: "." - GO_VERSION: "1.22" + GO_VERSION: "stable" jobs: binaries: