chore: remove unused envs on env testnet example #964
Workflow file for this run
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: CI | |
on: [push] | |
concurrency: | |
group: ${{github.workflow}}-${{github.ref}} | |
cancel-in-progress: true | |
env: | |
MAINNET_RPC: ${{ secrets.MAINNET_RPC }} | |
OPTIMISM_RPC: ${{ secrets.OPTIMISM_RPC }} | |
BASE_RPC: ${{ secrets.BASE_RPC }} | |
SEPOLIA_RPC: ${{ secrets.SEPOLIA_RPC }} | |
jobs: | |
unit-tests: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn --frozen-lockfile --network-concurrency 1 | |
- name: Precompile using 0.8.14 and via-ir=false | |
run: yarn build | |
- name: Run tests | |
shell: bash | |
run: yarn test:unit | |
integration-tests: | |
name: Run Integration Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn --frozen-lockfile --network-concurrency 1 | |
- name: Precompile using 0.8.14 and via-ir=false | |
run: yarn build | |
- name: Run tests | |
run: yarn test:integration | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 # Fetch only the last commit | |
- uses: wagoid/commitlint-github-action@v6 | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn --frozen-lockfile --network-concurrency 1 | |
- run: yarn lint:check |