-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 907 Bytes
/
pr.yaml
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
name: pr
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
# Required to check out the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Install modules
uses: ./.github/composite-actions/install
- name: Run linters
run: pnpm lint
- name: Run tests
run: pnpm test:ci
- name: 'Report Coverage'
# Set if: always() to also generate the report if tests are failing
# Only works if you set `reportOnFailure: true` in your vite config
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
working-directory: packages/docusaurus-plugin-structurizr
- name: Build all packages and docs
run: pnpm build:docs