27 lines
455 B
YAML
27 lines
455 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
|
|
shell: bash
|
|
run: npm run test
|