Skip to content

Commit

Permalink
unit test run on both Windows 2019 and 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenyuTan-amz committed Feb 25, 2022
1 parent 1a05227 commit ec71b72
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/build-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:
cancel-in-progress: true

jobs:
windows-unittest:
windows-2019-unittest:
runs-on: windows-2019
steps:
- name: Checkout Repo
Expand Down Expand Up @@ -51,3 +51,36 @@ jobs:

- name: Run build
run: make build

windows-lateest-unittest:
runs-on: windows-2019
steps:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ~1.15.15

- name: Cache Go
uses: actions/cache@v2
with:
path: |
%LocalAppData%\go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: Install make
run: choco install make

- name: Run Unit tests
run: make test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
verbose: true

- name: Run build
run: make build

0 comments on commit ec71b72

Please sign in to comment.