Skip to content

Commit

Permalink
github: pin Ubuntu version to 24.04 (#507)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan <[email protected]>
  • Loading branch information
nathan-artie authored Oct 3, 2024
1 parent ae2fd5a commit 6c23184
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
name: Go tests
name: Go checks

on: [push]

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Install dependencies

- name: Download dependencies
run: go mod download

- name: Run vet
run: make vet

- name: Run staticcheck
env:
SC_VERSION: "2024.1.1"
run: |
SC_URL="https://github.com/dominikh/go-tools/releases/download/$SC_VERSION/staticcheck_linux_amd64.tar.gz"
wget -q ${SC_URL} -O - | tar -xzf - --strip-components 1 -C /usr/local/bin staticcheck/staticcheck
make static
- name: Run tests + race condition check
run: make race

- name: Check Go files are properly formatted
run: test -z $(gofmt -l .)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

jobs:
Postgres:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
container: golang:1.23
services:
postgres:
Expand All @@ -24,8 +24,9 @@ jobs:
go-version: 1.23
- name: Run integration test
run: PG_HOST=postgres make postgres-itest

MySQL:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
container: golang:1.23
services:
mysql:
Expand All @@ -45,8 +46,9 @@ jobs:
go-version: 1.23
- name: Run integration test
run: MYSQL_HOST=mysql make mysql-itest

MongoDB:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
container: golang:1.23
services:
mongo:
Expand Down

0 comments on commit 6c23184

Please sign in to comment.