-
Notifications
You must be signed in to change notification settings - Fork 220
57 lines (43 loc) · 1.57 KB
/
change_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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Pull Request Check
on: pull_request
jobs:
check:
runs-on: ubuntu-20.04
env:
BROWSERSLIST_IGNORE_OLD_DATA: true
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: pnpm cache
uses: actions/cache@v3
with:
path: ./common/temp/pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('common/config/rush/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-
- name: Install
run: node common/scripts/install-run-rush.js install
- name: Check dependencies
run: node common/scripts/install-run-rush.js check
- name: Verify change files
run: node common/scripts/install-run-rush.js change --verify
- name: Rush Build
run: node common/scripts/install-run-rush.js rebuild --verbose
- name: Install API Extractor
run: npm install -g @microsoft/[email protected]
- name: Check for API changes to @snowplow/browser-tracker
working-directory: ./trackers/browser-tracker
run: api-extractor run
- name: Check for API changes to @snowplow/node-tracker
working-directory: ./trackers/node-tracker
run: api-extractor run
- name: Check bundle size using bundlemon
run: npx [email protected]
env:
BUNDLEMON_PROJECT_ID: 630fceda4ed824a9d3733ec0
CI_COMMIT_SHA: ${{github.event.pull_request.head.sha || github.sha}}