-
Notifications
You must be signed in to change notification settings - Fork 2
127 lines (117 loc) · 3.43 KB
/
pull-request.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: 'pull request'
on: pull_request
env:
PVM_LL: silly
permissions:
contents: write
pull-requests: write
issues: write
jobs:
mark-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./.github/actions/setup
- run: npm run build
- run: npm exec pvm mark-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docs-test:
runs-on: ubuntu-latest
container: mshipov/plantuml:1.0.4
permissions:
contents: write
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: ./.github/actions/build-docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: docs
path: ./website/build
perf-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: ./.github/actions/setup
- run: npm run build
- run: node scripts/perf/run.js --historyLength 2
- run: node scripts/perf/create-report-comment.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./.github/actions/setup
- uses: dorny/paths-filter@v2
id: packageChanges
with:
filters: |
changes:
- 'packages/**'
- 'test/**'
- run: npm run build
- run: npm run check-ts-strict
- run: npm exec depscheck
- run: npm run lint:config-schema
- run: npm exec pvm vcs is-branch-actual
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm exec pvm lint
- run: npm run lint
- if: steps.packageChanges.outputs.changes == 'true'
run: npm run test -- -w `node -p 'Math.min(os.cpus().length, 2)'`
env:
PVM_GITHUB_TEST_REPO_TOKEN: ${{ secrets.PVM_GITHUB_TEST_REPO_TOKEN }}
- run: node scripts/github-test-repos-cleanup.js
if: always()
env:
PVM_GITHUB_TEST_REPO_TOKEN: ${{ secrets.PVM_GITHUB_TEST_REPO_TOKEN }}
publish-dry-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./.github/actions/setup
- run: npm run build
- run: npm exec pvm publish -- -s changed-since-release -S ref=HEAD --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-stale-dry-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./.github/actions/setup
- run: npm run build
- run: npm exec pvm publish -- -s stale --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update-dry-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
ref: ${{ github.event.pull_request.head.sha }}
- uses: ./.github/actions/setup
- run: npm run build
- run: npm exec pvm update -- --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}