-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 1.18 KB
/
pr-code-check.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
name: Run Lint & Prettier
on:
pull_request:
branches:
- "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "16"
- name: Checkout war3js_unsafe repository
uses: actions/checkout@v4
with:
repository: kirill-782/war3js_unsafe
path: unsafe
- name: Install unsafe dependencies
run: npm install
working-directory: ./unsafe
- name: Build unsafe
run: npm run build
working-directory: ./unsafe
- name: Checkout current repository
uses: actions/checkout@v4
with:
path: bootstrap
- name: Install dependencies
run: npm install
working-directory: ./bootstrap
- name: Run lint
run: npm run lint
working-directory: ./bootstrap
- name: Run Prettier
run: npx prettier ./src --check
working-directory: ./bootstrap