Skip to content

chore: Add support for running tests & prettier in CI #76

chore: Add support for running tests & prettier in CI

chore: Add support for running tests & prettier in CI #76

Workflow file for this run

# Build workflow
name: Build
on: [pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run lint
lint:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Npm Install
run: npm install
- name: Lint
run: npm run lint
format:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Npm Install
run: npm install
- name: Check Format
run: npm run format:check