.github/workflows/workflow.yml
on: ["push", "pull_request"]
name: workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- run: npm install
- run: npm run build --if-present
- run: npm run test
- run: npm run lint