diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 340eaf5..303f22d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,9 @@ on: - master pull_request: +permissions: + contents: read + jobs: build_and_test: runs-on: ubuntu-latest @@ -26,10 +29,32 @@ jobs: - name: Test run: make test + go_compatibility: + runs-on: ubuntu-latest + env: + # Verify the oldest supported Go version without a toolchain upgrade. + GOTOOLCHAIN: local + + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Setup Go + uses: actions/setup-go@v7 + with: + check-latest: true + go-version: "1.26" + + - name: Display Go version + run: go version + + - name: Test + run: make test + golangci-lint: runs-on: ubuntu-latest env: - GOLANGCI_LINT_VERSION: v2.13.1 + GOLANGCI_LINT_VERSION: v2.15.0 steps: - name: Checkout @@ -39,7 +64,7 @@ jobs: uses: actions/setup-go@v7 with: check-latest: true - go-version: "stable" + go-version-file: "go.mod" - name: Lint uses: golangci/golangci-lint-action@v9 diff --git a/go.mod b/go.mod index 61512bb..d07e002 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/riverqueue/apiframe go 1.26.0 +toolchain go1.27.4 + require ( github.com/go-playground/validator/v10 v10.30.5 github.com/jackc/pgerrcode v0.0.0-20240316143900-6e2875d9b438