Skip to content

Commit

Permalink
.github: unify Tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaShaleva committed Nov 25, 2021
1 parent 3ebc245 commit 6b07128
Showing 1 changed file with 12 additions and 34 deletions.
46 changes: 12 additions & 34 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ./...

0 comments on commit 6b07128

Please sign in to comment.