-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (54 loc) · 1.43 KB
/
qa.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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