Skip to content

ci: update

ci: update #25

name: Run Scenarios
on:
workflow_dispatch:
pull_request:
jobs:
run-scenarios:
strategy:
fail-fast: false
matrix:
<<<<<<< HEAD

Check failure on line 10 in .github/workflows/run-scenarios.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/run-scenarios.yaml

Invalid workflow file

You have an error in your yaml syntax on line 10
bases: [polygon]
=======
bases: [ mainnet, polygon]
>>>>>>> 53816b6 (disable other scenarios)
name: Run scenarios
env:
ETHERSCAN_KEY: ${{ secrets.ETHERSCAN_KEY }}
SNOWTRACE_KEY: ${{ secrets.SNOWTRACE_KEY }}
INFURA_KEY: ${{ secrets.INFURA_KEY }}
QUICKNODE_KEY: ${{ secrets.QUICKNODE_KEY }}
POLYGONSCAN_KEY: ${{ secrets.POLYGONSCAN_KEY }}
ARBISCAN_KEY: ${{ secrets.ARBISCAN_KEY }}
BASESCAN_KEY: ${{ secrets.BASESCAN_KEY }}
LINEASCAN_KEY: ${{ secrets.LINEASCAN_KEY }}
ALCHEMY_PROVIDER: ${{ secrets.ALCHEMY_PROVIDER }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
cache: 'yarn'
node-version: '16'
- name: Cache Deployments
uses: actions/cache@v2
with:
path: |
deployments/*/.contracts
deployments/**/aliases.json
!deployments/hardhat
!deployments/relations.ts
!deployments/**/roots.json
!deployments/**/relations.ts
!deployments/**/configuration.json
!deployments/**/migrations/*
key: deployments-v4
- name: Install packages
run: yarn install --non-interactive --frozen-lockfile && yarn build
- name: Compile
run: npx hardhat compile
- name: Run scenarios
run: yarn scenario --bases ${{ matrix.bases }}
- uses: actions/upload-artifact@v2 # upload scenario results
if: success() || failure() # run this step even if previous step failed
with:
name: scenario-results
path: scenario-results.json
# - uses: dorny/test-reporter@v1
# with:
# name: Scenario Tests (${{ matrix.bases }}) # Name of the check run which will be created
# path: scenario-results.json # Path to test results (inside artifact .zip)
# reporter: mocha-json # Format of test results