-
Notifications
You must be signed in to change notification settings - Fork 47
38 lines (35 loc) · 1.07 KB
/
commit-check.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
name: ForgeRock Commit Check
on:
push:
branches-ignore:
# We don't want to check commits on develop or master
# because they will be merged, not the commits we write
- 'develop'
- 'master'
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NX_CLOUD_ENCRYPTION_KEY: ${{ secrets.NX_CLOUD_ENCRYPTION_KEY }}
jobs:
commit-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0
- uses: actions/setup-node@v3
id: cache
with:
node-version: '16.13.1'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: npm install
run: npm ci
env:
DEBUG: pw:install
# PLAYWRIGHT_BROWSERS_PATH: 0
PLAYWRIGHT_SKIP_BROWSERS_DOWNLOAD: 1
- uses: wagoid/commitlint-github-action@v4
env:
NODE_PATH: ${{ github.workspace }}/node_modules