Use arb compatible USDC token implementation #261
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
test-unit: | |
name: Test unit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Setup node/yarn | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
cache-dependency-path: '**/yarn.lock' | |
- name: Install packages | |
run: yarn | |
- name: Run tests | |
run: yarn test:unit | |
test-only-doesnt-exist: | |
name: No .only | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Check if .only exists in integration test | |
run: fgrep .only -R test/ && exit 1 || exit 0 | |
test-hardhat: | |
name: Test hardhat | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup node/yarn | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
cache-dependency-path: '**/yarn.lock' | |
- name: Install packages | |
run: yarn | |
- name: Compile contracts | |
run: yarn build | |
- name: Run integration tests | |
run: yarn test | |
test-contracts: | |
name: Test storage layout and signatures | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Setup node/yarn | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
cache-dependency-path: '**/yarn.lock' | |
- name: Install packages | |
run: yarn | |
- name: Build | |
run: forge build | |
- name: Test Storage Layouts | |
run: yarn run test:storage | |
- name: Test function signatures | |
run: yarn run test:signatures | |
test-e2e: | |
name: Test e2e | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: OffchainLabs/actions/run-nitro-test-node@main | |
with: | |
l3-node: true | |
no-token-bridge: true | |
no-l3-token-bridge: true | |
- name: Setup node/yarn | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
cache-dependency-path: '**/yarn.lock' | |
- name: Install packages | |
run: yarn | |
- name: Compile contracts | |
run: yarn build | |
- name: Deploy creator and create token bridge | |
run: yarn deploy:local:token-bridge | |
- name: Verify deployed token bridge | |
run: yarn test:tokenbridge:deployment | |
- name: Verify creation code generation | |
run: yarn test:creation-code | |
- name: Test e2e orbit token bridge actions | |
run: yarn hardhat test test-e2e/orbitTokenBridge.ts | |
test-e2e-custom-fee-token: | |
name: Test e2e on custom fee token chain | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: OffchainLabs/actions/run-nitro-test-node@main | |
with: | |
l3-node: true | |
args: --l3-fee-token | |
no-token-bridge: true | |
no-l3-token-bridge: true | |
- name: Setup node/yarn | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
cache-dependency-path: '**/yarn.lock' | |
- name: Install packages | |
run: yarn | |
- name: Compile contracts | |
run: yarn build | |
- name: Deploy creator and create token bridge | |
run: yarn deploy:local:token-bridge | |
- name: Verify deployed token bridge | |
run: yarn test:tokenbridge:deployment | |
- name: Verify creation code generation | |
run: yarn test:creation-code | |
- name: Test e2e orbit token bridge actions | |
run: yarn hardhat test test-e2e/orbitTokenBridge.ts |