2024-09-27 12:12:47 +02:00
|
|
|
name: PR Check
|
2024-09-04 09:57:53 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2024-09-04 10:05:20 +02:00
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- dev
|
2024-09-04 09:57:53 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint-and-format:
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm install
|
|
|
|
|
|
|
|
- name: Run lint
|
|
|
|
run: npm run lint
|
|
|
|
|
|
|
|
- name: Run format check
|
|
|
|
run: npm run format-check
|
2024-09-27 12:12:47 +02:00
|
|
|
|
|
|
|
- name: Run tests
|
2024-09-27 14:38:47 +02:00
|
|
|
run: npm run test -- --ci
|