forked from TrueCloudLab/neoneo-go
.github: add windows-based tests workflow
This commit is contained in:
parent
16da133d61
commit
ebd128ee79
1 changed files with 32 additions and 2 deletions
34
.github/workflows/run_tests.yml
vendored
34
.github/workflows/run_tests.yml
vendored
|
@ -65,8 +65,8 @@ jobs:
|
|||
path_to_write_report: ./coverage.txt
|
||||
verbose: true
|
||||
|
||||
tests:
|
||||
name: Go
|
||||
tests_ubuntu:
|
||||
name: Ubuntu, Go
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
matrix:
|
||||
|
@ -99,6 +99,36 @@ jobs:
|
|||
- name: Run tests
|
||||
run: go test -v -race ./...
|
||||
|
||||
tests_win:
|
||||
name: Windows, Go (1.17)
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17
|
||||
|
||||
- name: Restore Go modules from cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: /home/runner/go/pkg/mod
|
||||
key: deps-${{ hashFiles('go.sum') }}
|
||||
|
||||
- name: Update Go modules
|
||||
run: go mod download -json
|
||||
|
||||
- name: Sync VM submodule
|
||||
run: |
|
||||
git submodule sync
|
||||
git submodule update --init
|
||||
|
||||
- name: Run tests
|
||||
run: go test -v -race ./...
|
||||
|
||||
build_cli:
|
||||
name: Build CLI
|
||||
runs-on: ubuntu-20.04
|
||||
|
|
Loading…
Reference in a new issue