-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.09 KB
/
main.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
name: Main workflow
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
frontend-unit-test:
uses: ./.github/workflows/frontend-unittest.yaml
frontend-build:
uses: ./.github/workflows/frontend-build.yaml
go-unit-test:
uses: ./.github/workflows/go-unittest.yaml
go-vet:
uses: ./.github/workflows/go-vet.yaml
go-lint:
uses: ./.github/workflows/go-lint.yaml
go-build:
needs: [frontend-build]
uses: ./.github/workflows/go-build.yaml
rock-build:
needs: [go-build, go-unit-test, go-vet, go-lint]
uses: ./.github/workflows/rock-build.yaml
rock-scan:
if: github.ref_name == 'main'
needs: [rock-build]
uses: ./.github/workflows/rock-scan.yaml
rock-publish:
if: github.ref_name == 'main'
needs: [rock-build]
uses: ./.github/workflows/rock-publish.yaml
snap-build:
needs: [go-build, go-unit-test, go-vet, go-lint]
uses: ./.github/workflows/snap-build.yaml
snap-publish:
if: github.ref_name == 'main'
needs: [snap-build]
uses: ./.github/workflows/snap-publish.yaml
secrets: inherit