Skip to content

Add pretter CI and node.js CI workflow #1

Add pretter CI and node.js CI workflow

Add pretter CI and node.js CI workflow #1

Workflow file for this run

name: Node.js CI
on:
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm run install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Prettier
run: pnpm run fmt:check
- name: Test
run: pnpm run test