-
Notifications
You must be signed in to change notification settings - Fork 41
61 lines (51 loc) · 1.81 KB
/
ci.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: "CI Check for PullRequest"
on:
pull_request:
jobs:
install-build-lint-test-misc:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20.x]
os: [macos-latest, ubuntu-latest, windows-latest]
fail-fast: false
steps:
- name: labels
uses: actions/labeler@main
continue-on-error: true
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
- name: "Git"
if: always()
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Nodejs"
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: "Install"
shell: bash
run: |
npm ci
- name: "Build"
shell: bash
run: |
npm run build -- --since refs/remotes/origin/${{ github.event.pull_request.base.ref }} --include-dependencies --include-dependents
- name: "Lint"
shell: bash
run: |
npm run lint:alone -- --since refs/remotes/origin/${{ github.event.pull_request.base.ref }} --include-dependencies --include-dependents
- name: "Test"
shell: bash
run: |
npm run test:alone -- --since refs/remotes/origin/${{ github.event.pull_request.base.ref }} --include-dependencies --include-dependents -- --coverage
- name: "Misc"
shell: bash
run: |
npx lerna run bundle:alone --scope @dzcode.io/web --since refs/remotes/origin/${{ github.event.pull_request.base.ref }} --include-dependencies --include-dependents
npx lerna run generate:sitemap --scope @dzcode.io/web --since refs/remotes/origin/${{ github.event.pull_request.base.ref }} --include-dependencies --include-dependents
env:
CI: true