-
Notifications
You must be signed in to change notification settings - Fork 360
31 lines (29 loc) · 826 Bytes
/
check-pr.yml
File metadata and controls
31 lines (29 loc) · 826 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
name: Lint, Unit Tests, and Code Analysis
on:
pull_request:
branches:
- develop
- main
- 'v[0-9]+.[0-9]+.[0-9]+*beta*'
types: [opened, synchronize]
jobs:
check_pr:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v3
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@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install && Build - SDK and Sample App
uses: ./.github/actions/install-and-build-sdk
- name: Lint
run: yarn lerna-workspaces run lint
- name: Test
run: yarn test:coverage