Skip to content

Bump github/codeql-action from 2 to 3 #131

Bump github/codeql-action from 2 to 3

Bump github/codeql-action from 2 to 3 #131

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
services:
db:
image: postgres:13
env:
POSTGRES_PASSWORD: heimdall
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.17
- uses: actions/cache@v3.3.1
with:
path: ~/go/pkg/mod
key: go-${{ hashFiles('**/go.sum') }}
restore-keys: go-
- run: make fmtcheck
- run: make test
env:
PGPASSWORD: heimdall
DATABASE_URL: "postgres://postgres@localhost/postgres?sslmode=disable"