-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (65 loc) · 1.79 KB
/
main.yaml
File metadata and controls
72 lines (65 loc) · 1.79 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
61
62
63
64
65
66
67
68
69
70
71
72
name: main
on:
push:
tags-ignore:
- "**"
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: a-novel-kit/workflows/go-actions/test-go@master
with:
modfile: gotestsum.mod
lint-go:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: a-novel-kit/workflows/go-actions/lint-go@master
lint-node:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: a-novel-kit/workflows/node-actions/lint-node@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
app_private_key: ${{ secrets.DEPENDENCY_BOT_PRIVATE_KEY }}
app_id: ${{ vars.DEPENDENCY_BOT_ID }}
report-codecov:
runs-on: ubuntu-latest
needs: [test, lint-go]
permissions:
contents: read
steps:
- uses: a-novel-kit/workflows/generic-actions/codecov@master
with:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
coverage_files: coverage.txt
coverage_artifact_ids: ${{ needs.test.outputs.artifact-id }}
report-grc:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && success()
needs: [test, lint-go]
permissions:
contents: read
steps:
- uses: a-novel-kit/workflows/go-actions/go-report-card@master
if: github.ref == 'refs/heads/master' && success()
docs:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && success()
needs: [test, lint-go, lint-node]
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: a-novel-kit/workflows/github-pages-actions/publish-vuepress@master
with:
working_directory: ./docs
build_path: ./docs/.vitepress/dist/