From 6b07128dbb776b36cf2e2f5452d3bfb05efb842f Mon Sep 17 00:00:00 2001 From: AnnaShaleva Date: Thu, 25 Nov 2021 10:53:33 +0300 Subject: [PATCH] .github: unify Tests workflow --- .github/workflows/run_tests.yml | 46 +++++++++------------------------ 1 file changed, 12 insertions(+), 34 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 4d434a19ce..98ef33bc24 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -65,12 +65,20 @@ jobs: path_to_write_report: ./coverage.txt verbose: true - tests_ubuntu: - name: Ubuntu, Go - runs-on: ubuntu-20.04 + tests: + name: Run tests (OS/Go) + runs-on: ${{ matrix.os }} strategy: matrix: - go_versions: [ '1.15', '1.16' ] + os: [ubuntu-20.04, windows-2022] + go_versions: [ '1.15', '1.16', '1.17' ] + exclude: + - os: windows-2022 + go_versions: '1.15' + - os: windows-2022 + go_versions: '1.16' + - os: ubuntu-20.04 + go_versions: '1.17' fail-fast: false steps: - uses: actions/checkout@v2 @@ -98,33 +106,3 @@ jobs: - name: Run tests run: go test -v -race ./... - - tests_wsc: - name: Windows Server Core, Go (1.17) - runs-on: windows-2022 - 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 ./...