-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (40 loc) · 1.51 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
46
47
48
49
50
51
name: Continuous Integration
concurrency:
group: ci-${{ github.event.number }}
cancel-in-progress: true
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: "31 1,12 * * *"
push:
branches:
- main
pull_request:
branches:
- main
jobs:
linter:
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
name: Linter
uses: ./.github/workflows/lint.yml
type-check:
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
name: Typecheck
uses: ./.github/workflows/type-check.yml
shellcheck:
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
name: Shellcheck
uses: nanlabs/devops-reference/.github/workflows/shellcheck.yml@main
markdownlint:
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.draft == false)
name: Markdownlint
uses: nanlabs/devops-reference/.github/workflows/markdownlint.yml@main
todo:
if: github.event_name == 'push'
name: TODO
uses: nanlabs/devops-reference/.github/workflows/todo.yml@main
pr-review:
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
name: Pull Request Validation
uses: nanlabs/devops-reference/.github/workflows/pr-review.yml@main