generated from Basssiiie/OpenRCT2-Simple-Typescript-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.19 KB
/
ci.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
name: ci
on:
push:
paths-ignore:
- ".github/*_TEMPLATE/**"
- ".gitignore"
- ".prettierignore"
- ".vscode/**"
branches:
- develop
pull_request:
paths-ignore:
- ".github/*_TEMPLATE/**"
- ".gitignore"
- ".prettierignore"
- ".vscode/**"
jobs:
check-code-formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.6
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
with:
node-version: 20.14.0
cache: npm
- run: npm ci --prefer-offline --no-audit --no-save
- run: npm run check-format
test:
needs: check-code-formatting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.6
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
with:
node-version: 20.14.0
cache: npm
- run: npm ci --prefer-offline --no-audit --no-save
- name: Fetch API reference
run: npm run fetch-api-reference
- name: Build project
run: npm run build:silent
- name: Run tests
run: npm run test