Skip to content

Bump actions/cache from 1 to 4 #96

Bump actions/cache from 1 to 4

Bump actions/cache from 1 to 4 #96

Workflow file for this run

name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Check formatting
run: |
files=$(go run golang.org/x/tools/cmd/goimports -l -local "github.com/G-Research" .)
if [[ $files != "" ]]; then
echo "Files need goimports running on them:"
echo "$files"
exit 1
fi
- name: Run tests
run: |
go test ./...