diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 01b2a3ee25719..e2c0eee3a356b 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -9,13 +9,12 @@ on: workflow_dispatch: jobs: - integration: + build: runs-on: ubuntu-latest env: DOCKER_BUILDKIT: 1 COMPOSE_DOCKER_CLI_BUILD: 1 steps: - # Monorepo tests - uses: actions/checkout@v2 - name: Get yarn cache directory path @@ -30,10 +29,17 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- + - name: Build the services working-directory: ./ops run: ./scripts/build-ci.sh + integration: + runs-on: ubuntu-latest + needs: build + steps: + # Monorepo tests + - uses: actions/checkout@v2 - name: Bring the stack up and wait for the sequencer to be ready working-directory: ./ops run: docker-compose up -d && ./scripts/wait-for-sequencer.sh @@ -51,7 +57,20 @@ jobs: - name: Print gas report run: cat integration-tests/gas-report.txt + examples: + runs-on: ubuntu-latest + needs: build + steps: # Examples Tests + - uses: actions/checkout@v2 + + - name: Install and build hardhat example + working-directory: ./examples/hardhat + run: | + yarn + yarn compile + yarn compile:ovm + - name: Test & deploy hardhat-example on hardhat (regression) working-directory: ./examples/hardhat run: | @@ -64,13 +83,19 @@ jobs: yarn deploy:ovm yarn test:integration:ovm - - name: Test & deploy waffle-example on waffle (regression) + - name: Install and build hardhat example working-directory: ./examples/waffle run: | + yarn yarn compile + yarn compile:ovm + + - name: Test & deploy waffle-example on waffle (regression) + working-directory: ./examples/waffle + run: | yarn test:integration + - name: Test & deploy waffle-example on Optimism working-directory: ./examples/waffle run: | - yarn compile:ovm yarn test:integration:ovm