Skip to content

Commit

Permalink
Enable Windows unit tests
Browse files Browse the repository at this point in the history
This is a stepping stone towards actual Windows support. Eventually, all
validations should be run, and release artifacts should be built for
Windows.

Signed-off-by: Will Murphy <[email protected]>
  • Loading branch information
willmurphyscode committed Apr 12, 2024
1 parent 0e0d123 commit 880d8db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/validations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,14 @@ jobs:

- name: Run all validations
run: make pr-validations

name: "Windows units"
runs-on: windows-2022
steps:
- uses: actions/checkout@v3

- name: install make
run: "choco install make"

- name: run units
run: "make unit"
2 changes: 1 addition & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ tasks:
- cmd: "{{ .MAKEDIR_P }} {{ .TMP_DIR }}"
silent: true
- "go test -coverprofile {{ .TMP_DIR }}/unit-coverage-details.txt {{ .TEST_PKGS }}"
- cmd: ".github/scripts/coverage.py {{ .COVERAGE_THRESHOLD }} {{ .TMP_DIR }}/unit-coverage-details.txt"
- cmd: '{{if eq OS "windows"}}python {{end}}.github/scripts/coverage.py {{ .COVERAGE_THRESHOLD }} {{ .TMP_DIR }}/unit-coverage-details.txt'
silent: true

## Build-related targets #################################
Expand Down

0 comments on commit 880d8db

Please sign in to comment.