saasitone/.github/workflows/test.yml

32 lines
530 B
YAML
Raw Normal View History

2021-12-31 07:02:56 -08:00
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
2023-01-17 19:35:14 -08:00
- uses: actions/checkout@v3
2021-12-31 07:02:56 -08:00
- name: Set up Go
2023-01-17 19:35:14 -08:00
uses: actions/setup-go@v3
2021-12-31 07:02:56 -08:00
with:
2024-04-27 13:26:50 -07:00
go-version: 1.22
2021-12-31 07:02:56 -08:00
2023-01-17 19:35:14 -08:00
- uses: actions/cache@v3
2021-12-31 07:02:56 -08:00
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: make test