-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (42 loc) · 983 Bytes
/
validation.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
name: Validation
on:
# CI workflow is responsible for building on push to master.
pull_request:
branches:
- master
jobs:
validation:
name: Validation Build
runs-on: ubuntu-latest
steps:
- name: Set time zone
uses: szenius/[email protected]
with:
timezoneLinux: "Europe/Stockholm"
- uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install dependencies
run: |
npm ci
- name: Test
run: |
npm test
- name: Lint
run: |
npm run lint
- name: Build (development)
run: |
npm run build
env:
CI: true
USERSCRIPTER_VERBOSE: true
- name: Build (production)
run: |
npm run build
env:
CI: true
USERSCRIPTER_MODE: production
USERSCRIPTER_VERBOSE: true