amfora/.github/workflows/test.yml

45 lines
927 B
YAML
Raw Permalink Normal View History

2021-03-05 04:59:48 +03:00
name: test
2020-11-03 02:46:37 +03:00
on:
push:
paths-ignore:
- '**.md'
- '**.toml'
- '**.desktop'
- 'LICENSE'
pull_request:
paths-ignore:
2020-12-07 23:32:35 +03:00
- '**.md'
- '**.toml'
- '**.desktop'
- 'LICENSE'
2020-11-03 02:46:37 +03:00
jobs:
test:
strategy:
fail-fast: false
2020-11-03 02:46:37 +03:00
matrix:
2024-03-18 03:06:09 +03:00
go-version: ['1.21', '1.22']
os: [ubuntu-latest]
2020-11-03 02:46:37 +03:00
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Install make on Windows
if: matrix.os == 'windows-latest'
run: choco install make
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
run: |
go test -race ./...
make