try adding orc test on linux

This commit is contained in:
Jaremy Creechley 2023-08-01 18:24:04 -07:00
parent 77ebfc8a2d
commit 3e9f4e34c3
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
1 changed files with 9 additions and 8 deletions

View File

@ -22,8 +22,7 @@ jobs:
cpu: amd64 cpu: amd64
builder: ubuntu-latest builder: ubuntu-latest
shell: bash --noprofile --norc -e -o pipefail shell: bash --noprofile --norc -e -o pipefail
tests: all tests: orc
testOrc: true
- os: macos - os: macos
cpu: amd64 cpu: amd64
builder: macos-latest builder: macos-latest
@ -49,7 +48,7 @@ jobs:
run: run:
shell: ${{ matrix.shell }} {0} shell: ${{ matrix.shell }} {0}
name: '${{ matrix.os }}-${{ matrix.cpu }}-tests-${{ matrix.tests }}-${{ matrix.testOrc }}' name: '${{ matrix.os }}-${{ matrix.cpu }}-tests-${{ matrix.tests }}'
runs-on: ${{ matrix.builder }} runs-on: ${{ matrix.builder }}
timeout-minutes: 80 timeout-minutes: 80
steps: steps:
@ -68,11 +67,13 @@ jobs:
## Part 1 Tests ## ## Part 1 Tests ##
- name: Setup ORC Test on Some Linux - name: Setup ORC Test on Some Linux
if: matrix.testOrc == true if: matrix.testOrc == true
run: echo '--mm:orc' >> config.nims run: |
echo '--mm:orc' >> config.nims
echo '' >> config.nims
## Part 1 Tests ## ## Part 1 Tests ##
- name: Unit tests - name: Unit tests
if: matrix.tests == 'unittest' || matrix.tests == 'all' if: matrix.tests == 'unittest' || matrix.tests == 'all' || matrix.tests == 'orc'
run: make -j${ncpu} test run: make -j${ncpu} test
# workaround for https://github.com/NomicFoundation/hardhat/issues/3877 # workaround for https://github.com/NomicFoundation/hardhat/issues/3877
@ -82,7 +83,7 @@ jobs:
node-version: 18.15 node-version: 18.15
- name: Start Ethereum node with Codex contracts - name: Start Ethereum node with Codex contracts
if: matrix.tests == 'contract' || matrix.tests == 'integration' || matrix.tests == 'all' if: matrix.tests == 'contract' || matrix.tests == 'integration' || matrix.tests == 'all' || matrix.tests == 'orc'
working-directory: vendor/codex-contracts-eth working-directory: vendor/codex-contracts-eth
env: env:
MSYS2_PATH_TYPE: inherit MSYS2_PATH_TYPE: inherit
@ -92,12 +93,12 @@ jobs:
## Part 2 Tests ## ## Part 2 Tests ##
- name: Contract tests - name: Contract tests
if: matrix.tests == 'contract' || matrix.tests == 'all' if: matrix.tests == 'contract' || matrix.tests == 'all' || matrix.tests == 'orc'
run: make -j${ncpu} testContracts run: make -j${ncpu} testContracts
## Part 3 Tests ## ## Part 3 Tests ##
- name: Integration tests - name: Integration tests
if: matrix.tests == 'integration' || matrix.tests == 'all' if: matrix.tests == 'integration' || matrix.tests == 'all' || matrix.tests == 'orc'
run: make -j${ncpu} testIntegration run: make -j${ncpu} testIntegration
coverage: coverage: