Skip to content

Commit c5c3fe7

Browse files
authored
Update GitHub Actions (#57)
* Update GitHub Actions * Remove comment
1 parent 790910f commit c5c3fe7

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run eslint
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: CI
52

63
on:
@@ -11,15 +8,31 @@ on:
118

129
jobs:
1310
build:
14-
11+
name: Build
1512
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Setup Node.js 16.x
17+
uses: actions/setup-node@v2.1.4
18+
with:
19+
node-version: 16.x
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Build PCUI Graph
23+
run: npm run build
1624

25+
lint:
26+
name: Lint
27+
runs-on: ubuntu-latest
1728
steps:
18-
- uses: actions/checkout@v2
19-
- name: Setup Node.js 10.x
20-
uses: actions/setup-node@v1
29+
- name: Checkout code
30+
uses: actions/checkout@v2
31+
- name: Setup Node.js 16.x
32+
uses: actions/setup-node@v2.1.4
2133
with:
22-
node-version: 10.x
23-
- run: npm ci
24-
- run: npm run build
25-
- run: npm run lint
34+
node-version: 16.x
35+
- name: Install dependencies
36+
run: npm ci
37+
- name: Run ESLint
38+
run: npm run lint

0 commit comments

Comments
 (0)