-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (32 loc) · 859 Bytes
/
test-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
38
39
40
41
42
43
44
name: Test PR
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js version
uses: actions/setup-node@v4
with:
node-version: 20
cache: ''
- run: npm install
- run: npm run build
- run: npm run test-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_COLOR: true
- name: Generate list using Markdown
run: |
cat docs/pr/coverage-summary.md >> $GITHUB_STEP_SUMMARY
cat docs/pr/coverage-details.md >> $GITHUB_STEP_SUMMARY