Skip to content

Bump actions/setup-go from 4 to 5 #132

Bump actions/setup-go from 4 to 5

Bump actions/setup-go from 4 to 5 #132

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@v5
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"