mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 19:29:39 +00:00
.github: unify Tests workflow
This commit is contained in:
parent
e64a617844
commit
d2d75b8ba5
1 changed files with 12 additions and 34 deletions
46
.github/workflows/run_tests.yml
vendored
46
.github/workflows/run_tests.yml
vendored
|
@ -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
|
||||
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 ./...
|
||||
|
|
Loading…
Reference in a new issue