-
Notifications
You must be signed in to change notification settings - Fork 928
86 lines (74 loc) · 1.46 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
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:
units:
name: Units
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-20.04
- macos-latest
- macos-13
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Run Units
run: make units
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@v4
- name: Set Up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Get build-time dependencies
run: |
choco install --no-progress --limit-output -y make
- name: Run Windows Units
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: