-
Notifications
You must be signed in to change notification settings - Fork 928
118 lines (99 loc) · 2.13 KB
/
tests-unit.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
name: "Tests"
on:
workflow_dispatch:
push:
tags:
- "v9.*"
- "v8.*"
- "v7.*"
pull_request:
branches:
- main
- v9
- v8
- v7
paths-ignore:
- "doc/**"
- ".gitpod.yml"
- "README.md"
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
lint:
name: Lint code
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: Run go fmt
run: go fmt && git diff --exit-code
units:
name: Units
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-20.04
- macos-latest
- macos-11
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: Set Up Test
run: |
go install github.com/onsi/ginkgo/[email protected]
go install github.com/onsi/gomega/matchers
- name: Run Units
run: make units
env:
ACK_GINKGO_RC: true
units-windows:
name: Units Windows
strategy:
fail-fast: false
matrix:
os:
- windows-latest
- windows-2019
runs-on: ${{ matrix.os }}
defaults:
run:
shell: pwsh
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: Set up Test
run: |
go install github.com/onsi/ginkgo/[email protected]
go install github.com/onsi/gomega/matchers
- name: Get build-time dependencies
run: |
choco install --no-progress --limit-output -y make
- name: Run Windows Units
env:
ACK_GINKGO_RC: true
run: |
Get-Command make
Get-Item Makefile
make units
# vim: set sw=2 ts=2 sts=2 et tw=78 foldlevel=2 fdm=indent nospell: