-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (58 loc) · 2.07 KB
/
publish.yml
File metadata and controls
60 lines (58 loc) · 2.07 KB
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
name: publish
on:
push:
tags:
- '*.*.*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setting up Node 16
uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
- run: npm test
- run: npm run mutation-test
- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1
with:
strip_v: true
- name: Publish as ${{steps.tag.outputs.tag}} Unit Test Coverage (Jest)
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./coverage
destination_dir: ./test-coverage-reports/unit-test-coverage-reports/${{steps.tag.outputs.tag}}
publish_branch: jekyll-setup
enable_jekyll: true
- name: Publish as latest Unit Test Coverage (Jest)
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./coverage
destination_dir: ./test-coverage-reports/unit-test-coverage-reports/latest
publish_branch: jekyll-setup
enable_jekyll: true
- name: Publish as latest Mutation Test Coverage (Stryker)
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./reports/mutation
destination_dir: ./test-coverage-reports/mutation-test-coverage-reports/latest
publish_branch: jekyll-setup
enable_jekyll: true
- name: Publish as ${{steps.tag.outputs.tag}} Mutation Test Coverage (Stryker)
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.JEKYLL_PAT }}
publish_dir: ./reports/mutation
destination_dir: ./test-coverage-reports/mutation-test-coverage-reports/${{steps.tag.outputs.tag}}
publish_branch: jekyll-setup
enable_jekyll: true
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
access: public