forked from mbnuqw/sidebery
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.18 KB
/
pull-request.yml
File metadata and controls
50 lines (46 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: pull-request
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review, review_requested]
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Setup nodejs
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Lint
run: |
npm install
npm run lint.eslint
lint-types:
runs-on: ubuntu-latest
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Setup nodejs
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Lint
run: |
npm install
npm run lint.types
test:
runs-on: ubuntu-latest
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup nodejs
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Test
run: |
npm install
npx vitest related --run $(git diff --name-only --relative HEAD^1 HEAD)