-
Notifications
You must be signed in to change notification settings - Fork 34
40 lines (40 loc) · 1.06 KB
/
action.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
name: node_js
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
Format:
name: Test formatting...
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js node
uses: actions/setup-node@v2
with:
node-version: "18"
- name: before_install
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: installing_yarn
run: yarn install
- name: formatting
run: yarn format
stage:
name: Test linting...
needs: Format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js node
uses: actions/setup-node@v2
with:
node-version: "18"
- name: before_install
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: installing_yarn & lint
run: |
yarn install
yarn run lint