File tree Expand file tree Collapse file tree 1 file changed +21
-40
lines changed Expand file tree Collapse file tree 1 file changed +21
-40
lines changed Original file line number Diff line number Diff line change 1
- name : " Tests"
1
+ name : Unit Tests
2
+
3
+ run-name : >-
4
+ Unit Tests:
5
+ ${{ github.event_name == 'pull_request'
6
+ && format('PR #{0} - {1}', github.event.pull_request.number, github.event.pull_request.title)
7
+ || format('{0} to {1}', github.event_name, github.ref_name)
8
+ }}
2
9
3
10
on :
4
11
workflow_dispatch :
21
28
permissions :
22
29
contents : read
23
30
24
- defaults :
25
- run :
26
- shell : bash
27
-
28
31
jobs :
29
- units :
30
- name : Units
32
+ unit-tests :
33
+ name : Unit Tests (${{ matrix.os }})
31
34
strategy :
32
35
fail-fast : false
33
36
matrix :
@@ -36,51 +39,29 @@ jobs:
36
39
- ubuntu-20.04
37
40
- macos-latest
38
41
- macos-13
39
- runs-on : ${{ matrix.os }}
40
- steps :
41
-
42
- - name : Checkout
43
- uses : actions/checkout@v4
44
-
45
- - name : Set Up Go
46
- uses : actions/setup-go@v5
47
- with :
48
- go-version-file : go.mod
49
- check-latest : true
50
-
51
- - name : Run Units
52
- run : make units
53
-
54
- units-windows :
55
- name : Units Windows
56
- strategy :
57
- fail-fast : false
58
- matrix :
59
- os :
60
42
- windows-latest
61
43
- windows-2019
62
44
runs-on : ${{ matrix.os }}
63
45
defaults :
64
46
run :
65
- shell : pwsh
66
- steps :
47
+ shell : ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
67
48
68
- - name : Checkout
49
+ steps :
50
+ - name : Checkout Repository
69
51
uses : actions/checkout@v4
70
52
71
- - name : Set Up Go
53
+ - name : Setup Go Environment
72
54
uses : actions/setup-go@v5
73
55
with :
74
56
go-version-file : go.mod
75
57
check-latest : true
58
+ cache : true
76
59
77
- - name : Get build-time dependencies
78
- run : |
79
- choco install --no-progress --limit-output -y make
60
+ - name : Install Windows Build Dependencies
61
+ if : matrix.os == 'windows-latest'
62
+ run : choco install --no-progress --limit-output -y make
63
+
64
+ - name : Execute Unit Tests
65
+ run : make units
80
66
81
- - name : Run Windows Units
82
- run : |
83
- Get-Command make
84
- Get-Item Makefile
85
- make units
86
67
# vim: set sw=2 ts=2 sts=2 et tw=78 foldlevel=2 fdm=indent nospell:
You can’t perform that action at this time.
0 commit comments