-
Notifications
You must be signed in to change notification settings - Fork 378
41 lines (38 loc) · 1.02 KB
/
Copy pathcheck-pr.yml
File metadata and controls
41 lines (38 loc) · 1.02 KB
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
name: Lint, Unit Tests, and Code Analysis
on:
pull_request:
branches:
- develop
- main
- 'v[0-9]+.[0-9]+.[0-9]+*beta*'
types: [opened, synchronize]
permissions:
contents: read
pull-requests: read
jobs:
check_pr:
runs-on: public
strategy:
matrix:
node-version: [24.x]
steps:
- uses: actions/checkout@v6
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- name: Install && Build - SDK and Sample App
uses: ./.github/actions/install-and-build-sdk
- name: Build SDK
run: yarn build
- name: Lint
run: yarn lint
- name: Typecheck packages and example apps
run: yarn typecheck
- name: Test
run: yarn test:coverage