-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (38 loc) · 936 Bytes
/
main.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
#
# ci.yml
#
# Run tests for all pushed commits and opened pull requests on Github.
#
defaults:
run:
working-directory: ./contracts
name: CI for building contracts
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Set up NodeJS
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Git checkout
uses: actions/checkout@v2
- name: NPM ci, build, & test
run: |
npm install
npm run build --if-present
npm test
npm run coverage
env:
CI: true
working-directory: ./contracts
- name: current directory
run: |
ls -al
- name: create badge
uses: gaelgirodon/ci-badges-action@v1
with:
gist-id: 2cfa2783ab5d2eb2b178d1cf96fa0a29
token: ${{ secrets.GIST_TOKEN }}