mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-15 08:27:42 +00:00
20 lines
524 B
YAML
20 lines
524 B
YAML
on: [push, pull_request]
|
|
name: Unit Tests
|
|
jobs:
|
|
test:
|
|
name: "go ${{ matrix.go-version }} (${{ matrix.platform }})"
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.18]
|
|
platform: [ubuntu-latest]
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
- name: Test
|
|
run: go test ./... -v -race -timeout 5s
|