-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (36 loc) · 964 Bytes
/
ci.yaml
File metadata and controls
48 lines (36 loc) · 964 Bytes
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
name: CI
on: [push]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install
run: npm install
- name: Run Solium
run: ./node_modules/.bin/solium --dir ./contracts/
- name: Run ESLint
run: ./node_modules/.bin/eslint . --ext .js
test_coverage:
name: Test and coverage
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install
run: npm install
- name: Launch Ganache
run: npx ganache-cli -h 127.0.0.1&
- name: Coverage
run: node_modules/.bin/truffle run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}