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
|
2024-06-22 07:34:26 -07:00
|
|
|
run: make test
|