-
Notifications
You must be signed in to change notification settings - Fork 158
89 lines (77 loc) · 1.83 KB
/
build-code.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Format Lint
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
permissions:
contents: read
jobs:
build:
permissions:
contents: read # Job-level permissions
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install Prettier
run: |
npm install -g prettier
- name: Module 1 - nodejs-intro
run: |
cd nodejs-intro
npm install
npm run format
npm run lint
- name: Module 1 - nodejs-intro-esm
run: |
cd nodejs-intro-esm
npm install
npm run format
npm run lint
- name: Module 2 - node-dependencies
run: |
cd node-dependencies
npm install
npm run format
npm run lint
- name: Module 3 - nodejs-debug
run: |
cd node-dependencies
npm install
npm run format
npm run lint
- name: Module 4 - nodejs-files
run: |
cd nodejs-files
npm install
npm run format
npm run lint
- name: Module 5 - nodejs-http
run: |
cd nodejs-http
npm install
npm run format
npm run lint
- name: Module 6 - nodejs-route
run: |
cd nodejs-route
npm install
npm run format
npm run lint
- name: Docs - async iterators
# In JS Dev Center
run: |
cd async-iterators
npm install
npm run format
npm run lint