-
Notifications
You must be signed in to change notification settings - Fork 326
34 lines (32 loc) · 965 Bytes
/
check-pr.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
name: Lint, Unit Tests, and Code Analysis
on:
pull_request:
branches:
- develop
- main
- v6.0.0
- 'v[0-9]+.[0-9]+.[0-9]+*beta*'
types: [opened, synchronize]
jobs:
check_pr:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.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@v3
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 && cd docusaurus && npx prettier --check '**/*.mdx'
- name: Test
run: yarn test:coverage
env:
GITHUB_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}