Release/1.1.1 #139
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: Quality assessment | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, reopened, synchronize] | |
env: | |
SNOWTRACE_API_KEY: ${{ secrets.SNOWTRACE_API_KEY }} | |
jobs: | |
eslint: | |
name: Lint with ESLint | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup environment | |
uses: ./.github/actions/setup | |
- name: Lint with ESLint | |
run: pnpm eslint | |
solhint: | |
name: Lint with Solhint | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup environment | |
uses: ./.github/actions/setup | |
- name: Lint with Solhint | |
run: pnpm solhint | |
gas: | |
name: Runs the gas estimator with the tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup environment | |
uses: ./.github/actions/setup | |
- name: Run the tests | |
run: pnpm test:gas | |
coverage: | |
name: Compute the coverage with the tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup environment | |
uses: ./.github/actions/setup | |
- name: Run the tests in coverage mode | |
run: pnpm test:coverage | |
- name: Send the coverage results to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage/lcov.info |