Merge pull request #2170 from dennisrijsdijk/patch-1 #3312
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |