-
Notifications
You must be signed in to change notification settings - Fork 45
45 lines (36 loc) · 1.42 KB
/
ci.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
name: CI
on: [pull_request]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: '16'
- name: Run `npm install`
run: npm install
- name: Run `npm run all`
run: npm run all
- name: Save PR number
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
run: echo ${{ github.event.number }} > PR_NUMBER
- name: Upload artifact with `PR_NUMBER`
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: PR_NUMBER
path: PR_NUMBER
- name: Upload artifact with `dist` folder
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: dist
path: dist/
- name: Upload artifact with `covertura.xml`
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: cobertura
path: coverage/cobertura-coverage.xml