This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (66 loc) · 1.91 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
types: [ opened, synchronize, reopened, closed ]
merge_group:
name: CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
jobs:
cache-deps:
runs-on: ubuntu-latest
name: Install Dependencies
steps:
- uses: actions/checkout@v3
- uses: chill-viking/npm-ci@latest
name: Install dependencies w/ caching
nx-affected:
uses: chill-viking/workflows/.github/workflows/nx-test-affected.yml@main
name: Test affected
if: github.event.action != 'closed'
needs: cache-deps
publish-to-sonar-cloud:
uses: chill-viking/workflows/.github/workflows/nx-sonar-cloud-all.yml@main
name: Coverage Report
if: >
github.event.action != 'closed'
&& github.event_name != 'push'
&& github.event_name != 'merge_group'
needs: cache-deps
secrets:
sonar-token: ${{ secrets.ORG_SONAR_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
publish-alpha:
uses: ./.github/workflows/npm-publish.yml
name: Publish Layout Alpha build
if: >
github.event.action != 'closed'
&& github.event_name != 'push'
&& github.event_name != 'merge_group'
needs: cache-deps
with:
nx_project: layout
project_path: libs/layout
debug: true
secrets:
npm_token: ${{ secrets.ORG_NPM_TOKEN }}
git_token: ${{ secrets.GITHUB_TOKEN }}
deploy:
uses: chill-viking/workflows/.github/workflows/swa-deploy.yml@main
name: SWA
needs: cache-deps
if: >
always()
&& github.event_name != 'push'
&& github.event_name != 'merge_group'
with:
output_location: dist/apps/chill-viking-ng-libs
secrets:
swa_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_FLOWER_0950BD703 }}
git_token: ${{ secrets.GITHUB_TOKEN }}