-
Notifications
You must be signed in to change notification settings - Fork 12
37 lines (30 loc) · 907 Bytes
/
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
35
36
37
on: ["pull_request"]
name: Build and Test PR
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup 🛠️
uses: ./.github/actions/setup
- name: Build 🔧
run: |
pnpm install
pnpm run lint
pnpm run test
pnpm run build
- name: Report Coverage for agora-rtc-react 🟢
if: always() # Also generate the report if tests are failing
uses: davelosert/[email protected]
with:
working-directory: "./packages/agora-rtc-react"