forked from ramp4-pcar4/ramp4-pcar4
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1.05 KB
/
pr-checks.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
on:
pull_request:
types: [opened, synchronize]
jobs:
pr-status-checks:
name: PR Status Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.5.1'
cache: 'npm'
- name: Try to restore node_modules folder from cache
id: cache-node-modules
uses: actions/cache@v4
with:
path: ./node_modules
key: npm-${{ hashFiles('./package-lock.json') }}
- name: Otherwise install npm dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- uses: ramp4-pcar4/status-checks@main
id: pr-checks
with:
gh-token: ${{ secrets.GITHUB_TOKEN }}
ts-command: 'npm run ts:check'
lint-command: 'npm run lint:check'
format-command: 'npm run format:check'