split windows CI tests into parts (#485)
* setup to use env variable for parallel tests * use explicit targets * use target in includes * test windows split * try simpler logic * only use include in ci.yml * add cpu * fix name * re-add unit tests! * restore coverage * not sure why env broke there * startup node for part 1 & 2 tests * fixup part 1 & 2 tests * split windows into 3!
This commit is contained in:
parent
113f7cccc1
commit
8bebc90428
|
@ -12,23 +12,38 @@ jobs:
|
|||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [linux, macos, windows]
|
||||
include:
|
||||
- os: linux
|
||||
cpu: amd64
|
||||
builder: ubuntu-latest
|
||||
shell: bash --noprofile --norc -e -o pipefail
|
||||
tests: all
|
||||
- os: macos
|
||||
cpu: amd64
|
||||
builder: macos-latest
|
||||
shell: bash --noprofile --norc -e -o pipefail
|
||||
tests: all
|
||||
- os: windows
|
||||
cpu: amd64
|
||||
builder: windows-latest
|
||||
shell: msys2
|
||||
tests: unittest
|
||||
- os: windows
|
||||
cpu: amd64
|
||||
builder: windows-latest
|
||||
shell: msys2
|
||||
tests: contract
|
||||
- os: windows
|
||||
cpu: amd64
|
||||
builder: windows-latest
|
||||
shell: msys2
|
||||
tests: integration
|
||||
|
||||
defaults:
|
||||
run:
|
||||
shell: ${{ matrix.shell }} {0}
|
||||
|
||||
name: '${{ matrix.os }}'
|
||||
name: '${{ matrix.os }}-${{ matrix.cpu }}-tests-${{ matrix.tests }}'
|
||||
runs-on: ${{ matrix.builder }}
|
||||
timeout-minutes: 80
|
||||
steps:
|
||||
|
@ -44,7 +59,9 @@ jobs:
|
|||
shell: ${{ matrix.shell }}
|
||||
nim_version: ${{ env.nim_version }}
|
||||
|
||||
## Part 1 Tests ##
|
||||
- name: Unit tests
|
||||
if: matrix.tests == 'unittest' || matrix.tests == 'all'
|
||||
run: make -j${ncpu} test
|
||||
|
||||
# workaround for https://github.com/NomicFoundation/hardhat/issues/3877
|
||||
|
@ -54,6 +71,7 @@ jobs:
|
|||
node-version: 18.15
|
||||
|
||||
- name: Start Ethereum node with Codex contracts
|
||||
if: matrix.tests == 'contract' || matrix.tests == 'integration' || matrix.tests == 'all'
|
||||
working-directory: vendor/codex-contracts-eth
|
||||
env:
|
||||
MSYS2_PATH_TYPE: inherit
|
||||
|
@ -61,10 +79,14 @@ jobs:
|
|||
npm install
|
||||
npm start &
|
||||
|
||||
## Part 2 Tests ##
|
||||
- name: Contract tests
|
||||
if: matrix.tests == 'contract' || matrix.tests == 'all'
|
||||
run: make -j${ncpu} testContracts
|
||||
|
||||
## Part 3 Tests ##
|
||||
- name: Integration tests
|
||||
if: matrix.tests == 'integration' || matrix.tests == 'all'
|
||||
run: make -j${ncpu} testIntegration
|
||||
|
||||
coverage:
|
||||
|
|
Loading…
Reference in New Issue