From ebd128ee795c3a1ef6c5c8f6f015b0369ee7ee02 Mon Sep 17 00:00:00 2001 From: AnnaShaleva Date: Wed, 17 Nov 2021 18:30:51 +0300 Subject: [PATCH] .github: add windows-based tests workflow --- .github/workflows/run_tests.yml | 34 +++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 4f814fce8..bb92216d3 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -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