Upgrade to Userscripter 5.0.0 #267
Workflow file for this run
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: 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 |