Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- master
pull_request:

permissions:
contents: read
Comment on lines +9 to +10

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixing a CodeQL medium complaint with this bit


jobs:
build_and_test:
runs-on: ubuntu-latest
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading