-
Notifications
You must be signed in to change notification settings - Fork 2
62 lines (49 loc) · 1.38 KB
/
ci.yaml
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
55
56
57
58
59
60
61
62
name: Ecoism CI Tests
on: [push]
jobs:
lint:
name: Eslint, prettier and solhint
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: install node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: install dependencies
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command
- name: build project
uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build` command
- name: check lint
uses: borales/actions-yarn@v4
with:
cmd: format # will run `yarn format` command
tests:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: install node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "npm"
- name: install dependencies
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command
- name: build project
uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build` command
- name: Run Test
uses: borales/actions-yarn@v4
with:
cmd: test # will run `yarn build` command