-
-
Notifications
You must be signed in to change notification settings - Fork 100
37 lines (29 loc) · 982 Bytes
/
test-updates.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
name: Build Tests
# No need to run on master branch
on:
push:
branches: ['*', '!master']
pull_request:
types: [opened, edited, synchronize, reopened]
branches: ['*', '!master']
jobs:
test:
name: Lint and Test Scss
runs-on: 'ubuntu-latest'
steps:
- name: Setup Nodejs
uses: 'actions/setup-node@v1'
with:
node-version: "14.x"
- name: Install Correct NPM Version
run: npm install -g [email protected]
- name: Checkout branch
uses: 'actions/checkout@v2'
- name: Run Test Dependencies
run: npm install --global --production eslint@^8.3.0 node-sass@^4.14.1
- name: Run Linter
run: eslint . --quiet
- name: Compile GUI CSS
run: node-sass --quiet --source-map=false ./src/gui/scss/ --output=./src/gui/css
- name: Compile Overlay CSS
run: node-sass --quiet --source-map=false ./src/resources/overlay/scss/ --output=./src/resources/overlay/css/