Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 29 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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: |
Expand All @@ -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