apollo-backend/.github/workflows/test.yml

21 lines
524 B
YAML
Raw Permalink Normal View History

2021-07-14 19:22:49 +00:00
on: [push, pull_request]
name: Unit Tests
jobs:
test:
2021-07-14 19:25:26 +00:00
name: "go ${{ matrix.go-version }} (${{ matrix.platform }})"
2021-07-14 19:26:51 +00:00
strategy:
matrix:
2022-03-26 17:41:24 +00:00
go-version: [1.18]
2021-07-14 19:26:51 +00:00
platform: [ubuntu-latest]
2021-07-14 19:25:26 +00:00
runs-on: ${{ matrix.platform }}
2021-07-14 19:22:49 +00:00
steps:
2021-07-14 19:26:51 +00:00
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
2021-07-24 19:44:26 +00:00
- name: Lint
uses: golangci/golangci-lint-action@v2
2021-07-14 19:26:51 +00:00
- name: Test
2022-03-26 17:40:51 +00:00
run: go test ./... -v -race -timeout 5s