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