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+ }}
29
310on :
411 workflow_dispatch :
2128permissions :
2229 contents : read
2330
24- defaults :
25- run :
26- shell : bash
27-
2831jobs :
29- units :
30- name : Units
32+ unit-tests :
33+ name : Unit Tests (${{ matrix.os }})
3134 strategy :
3235 fail-fast : false
3336 matrix :
@@ -36,51 +39,29 @@ jobs:
3639 - ubuntu-20.04
3740 - macos-latest
3841 - 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 :
6042 - windows-latest
6143 - windows-2019
6244 runs-on : ${{ matrix.os }}
6345 defaults :
6446 run :
65- shell : pwsh
66- steps :
47+ shell : ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
6748
68- - name : Checkout
49+ steps :
50+ - name : Checkout Repository
6951 uses : actions/checkout@v4
7052
71- - name : Set Up Go
53+ - name : Setup Go Environment
7254 uses : actions/setup-go@v5
7355 with :
7456 go-version-file : go.mod
7557 check-latest : true
58+ cache : true
7659
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
8066
81- - name : Run Windows Units
82- run : |
83- Get-Command make
84- Get-Item Makefile
85- make units
8667# 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