Skip to content

Bump actions/cache from 3.3.1 to 4.2.0 #139

Bump actions/cache from 3.3.1 to 4.2.0

Bump actions/cache from 3.3.1 to 4.2.0 #139

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@v4.2.0
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"