Yq u zt249/1946 fix node package #38
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
on: | |
pull_request: | |
branches: | |
- master | |
name: Pull Request Pipeline | |
jobs: | |
pull_request_pipeline: | |
name: Pull Request Pipeline | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- name: Cache node_modules | |
id: cache-modules | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: 12.x-${{ runner.OS }}-build-${{ hashFiles('package.json') }} | |
- name: NPM Install | |
if: steps.cache-modules.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Lint | |
run: npm run-script lint | |
- name: Pretty | |
run: npm run-script prettier-check | |
- name: Test | |
run: npm test | |
- name: Build | |
run: npm run build |