feat: add CI for integration test suite for contract upgrades #30
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: Upgrade Test Suite | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main # Target branch for the PR | |
release: | |
types: [published] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
upgrade-test-suite: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'pull_request' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: FuelLabs/github-actions/setups/node@master | |
with: | |
node-version: 20.16.0 | |
pnpm-version: 9.0.6 | |
- uses: FuelLabs/github-actions/setups/docker@master | |
with: | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: ./.github/actions/setup-rust | |
- name: Build project | |
run: pnpm build | |
- name: Sets the tenderly rpc endpoint in the L1 docker container env | |
run: | | |
cat << EOF > l1_chain.env | |
TENDERLY_RPC_URL=${{ secrets.TENDERLY_RPC_URL }} | |
EOF | |
working-directory: ./packages/solidity-contracts/docker/envs | |
- name: Run integration tests on a L1 fork after upgrading contracts | |
run: | | |
pnpm upgrade:test:integration | |
working-directory: ./packages/solidity-contracts |