Skip to content

refactor: format code #5

refactor: format code

refactor: format code #5

Workflow file for this run

name: PR
on:
pull_request:
branches:
- main
jobs:
pr:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-13, windows-2022]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: actions/cache@v3
id: npm-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
- name: npm ci
run: npm ci
if: steps.npm-cache.outputs.cache-hit != 'true'
- run: npm test
- name: Build
run: node scripts/build.js