-
Notifications
You must be signed in to change notification settings - Fork 105
45 lines (40 loc) · 988 Bytes
/
pr.yml
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
name: v4.x pull requests
on:
pull_request_target:
types:
- opened
- edited
- synchronize
branches:
- v4.x
jobs:
prlint:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
debug:
name: Debug
runs-on: ubuntu-latest
steps:
- uses: hmarr/debug-action@v2
install:
name: Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache node_modules
id: cacheModules
uses: actions/cache@v3
with:
path: ~/.npm # this is cache where npm installs from before going out to the network
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
- name: Install dependencies
if: steps.cacheModules.outputs.cache-hit != 'true'
run: npm install
checks:
name: Checks
needs: [install]
uses: ./.github/workflows/checks.yml