Skip to content

Run eslint and prettier in separate workflow #152

Run eslint and prettier in separate workflow

Run eslint and prettier in separate workflow #152

Workflow file for this run

name: Test (JavaScript)
on: [pull_request, push]
jobs:
test:
# Skip if it's a PR from the same repo (as push will handle it)
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run TypeScript check
run: npx tsc
- name: Run tests
run: npm run test -- run