-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (29 loc) · 879 Bytes
/
Copy pathcherry_diff.yml
File metadata and controls
36 lines (29 loc) · 879 Bytes
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
name: cherry diff
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
cherry_diff:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0 # fetches all commits from all branches
ref: ${{ github.head_ref }} # checks out the branch that triggered the workflow
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies
run: |
npm ci
npm i -g cherrypush
- name: Raise if new violations are added
run: |
cherry diff --quiet --metric "TODO/FIXME" --metric "[TS Migration] JS loc" --error-if-increase