This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (58 loc) · 1.62 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
name: CI
on:
push:
branches-ignore:
- preprod
- prod
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
jobs:
deadcode:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.15.1'
cache: 'npm'
- name: Install
run: make install
- name: Detect dead code
run: make lint/detect-dead-code
ui:
uses: ./.github/workflows/ui.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
api:
uses: ./.github/workflows/api.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
common:
uses: ./.github/workflows/common.yml
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
graphql:
uses: ./.github/workflows/graphql.yml
doc:
uses: ./.github/workflows/doc.yml
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
deploy:
needs: [ui, api, common, doc, graphql]
if: github.ref == 'refs/heads/master'
uses: ./.github/workflows/cd.yml
secrets:
CD_TOKEN_DEV: ${{ secrets.CD_TOKEN_DEV }}
CD_TOKEN_PREPROD: ${{ secrets.CD_TOKEN_PREPROD }}
CD_TOKEN_PROD: ${{ secrets.CD_TOKEN_PROD }}
with:
deploy_environment: dev
git_sha: ${{ github.sha }}