Skip to content

CI: Add build step. #21

CI: Add build step.

CI: Add build step. #21

Workflow file for this run

name: Build, lint and test
on: [push, pull_request_target]
jobs:
test:
name: 🔬 Test
runs-on: ubuntu-latest
steps:
- name: 🕶️ Checkout repository
uses: actions/checkout@v3
- name: 🏎️ Setup nodejs
uses: actions/setup-node@v3
- name: 💾 Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-test-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-test-
- name: 📦 Download dependencies
run: npm ci
- name: ⚙️ Codegen
run: npm run generate
- name: 📋 Lint
run: npm run lint
- name: 🧪 Test
run: npm run test
- name: 🛠️ Build
run: npm run build