-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (85 loc) · 2.48 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Push to main
on:
push:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Build
uses: ./.github/workflows/reusable-build.yml
with:
dist-artifact-name: ngx-meta-dist
dist-artifact-name-coverage-suffix: -coverage
tsc-artifact-name: ngx-meta-tsc
test:
name: Test
uses: ./.github/workflows/reusable-test.yml
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
lint:
name: Lint
uses: ./.github/workflows/reusable-lint.yml
style:
name: Style
uses: ./.github/workflows/reusable-style.yml
api-extractor:
needs: build
name: API Extractor
uses: ./.github/workflows/reusable-api-extractor.yml
with:
tsc-artifact-name: ngx-meta-tsc
api-docs-artifact-name: ngx-meta-api-docs
example-apps:
needs: build
name: Example apps
uses: ./.github/workflows/reusable-example-apps.yml
with:
dist-artifact-name: ngx-meta-dist
dist-artifact-name-coverage-suffix: -coverage
example-app-artifact-name-prefix: ngx-meta-example-app-
example-app-artifact-name-coverage-suffix: -coverage
e2e:
needs: example-apps
name: E2E
uses: ./.github/workflows/reusable-e2e.yml
with:
example-app-artifact-name-prefix: ngx-meta-example-app-
example-app-artifact-name-coverage-suffix: -coverage
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
bundle-size:
needs: example-apps
name: Bundle size
uses: ./.github/workflows/reusable-bundle-size.yml
with:
example-app-artifact-name-prefix: ngx-meta-example-app-
bundle-size-artifact-name-prefix: ngx-meta-bundle-size-
permissions:
checks: write
release:
name: Release
needs: e2e
uses: ./.github/workflows/reusable-release.yml
with:
dist-artifact-name: ngx-meta-dist
secrets:
npm-token: ${{ secrets.NPM_TOKEN }}
github-token-pr: ${{ secrets.PR_GH_TOKEN }}
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
docs:
name: Docs
needs: [api-extractor, bundle-size]
uses: ./.github/workflows/reusable-docs.yml
with:
api-docs-artifact-name: ngx-meta-api-docs
bundle-size-artifact-name-prefix: ngx-meta-bundle-size-
secrets:
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
permissions:
deployments: write