26 lines
443 B
YAML
26 lines
443 B
YAML
name: PR Check
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
branches:
|
|
- main
|
|
- dev
|
|
|
|
jobs:
|
|
lint-and-format:
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run lint
|
|
run: npm run lint
|
|
|
|
- name: Run format check
|
|
run: npm run format-check
|
|
|
|
- name: Run tests
|
|
run: npm run test -- --ci
|