-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 899 Bytes
/
run-all-tests.yml
File metadata and controls
47 lines (37 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Tests and Linting
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
linting:
name: lint
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: "^1.18"
- name: Check file formatting
run: make fmt/check
- name: Check go mod tidy
run: make tidy/check
- name: Run linting check
run: make lint
unit_tests:
name: unit tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
steps:
- uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: "^1.18"
- name: Run unit tests
run: make test/unit