2024-09-27 20:49:36 +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
|
2024-11-02 18:26:01 +01:00
|
|
|
run: npm ci
|
2024-09-04 09:57:53 +02:00
|
|
|
|
|
|
|
- name: Run lint
|
|
|
|
run: npm run lint
|
|
|
|
|
|
|
|
- name: Run format check
|
|
|
|
run: npm run format-check
|
2024-09-27 20:49:36 +02:00
|
|
|
|
|
|
|
- name: Run tests
|
2024-12-14 11:57:07 +01:00
|
|
|
run: npm run test
|