-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (66 loc) · 2.12 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
name: continuous integration
on:
push:
branches:
- develop
jobs:
test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: set up node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: check out code
uses: actions/checkout@v4
- name: install
run: yarn install --ignore-engines
- name: unit tests
run: yarn coverage
- name: upload test coverage to codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV }}
call-frontpage-deploy:
needs: test
uses: dictyBase/workflows/.github/workflows/composite-deploy.yaml@develop
secrets: inherit
with:
app: frontpage
repository: ${{ github.repository }}
ref: ${{ github.ref_name }}
docker_image: dicty-frontpage
dockerfile: "docker/Dockerfile.frontpage"
cluster: ${{ vars.DEV_STAGING_CLUSTER }}
cluster_state_storage: ${{ vars.DEV_STAGING_KOPS_STATE_STORAGE }}
project: frontend_application
application_type: frontend
call-stockcenter-deploy:
needs: call-frontpage-deploy
uses: dictyBase/workflows/.github/workflows/composite-deploy.yaml@develop
secrets: inherit
with:
app: stockcenter
repository: ${{ github.repository }}
ref: ${{ github.ref_name }}
docker_image: stock-center
dockerfile: docker/Dockerfile.stock-center
cluster: ${{ vars.DEV_STAGING_CLUSTER }}
cluster_state_storage: ${{ vars.DEV_STAGING_KOPS_STATE_STORAGE }}
project: frontend_application
application_type: frontend
call-publication-deploy:
needs: call-stockcenter-deploy
uses: dictyBase/workflows/.github/workflows/composite-deploy.yaml@develop
secrets: inherit
with:
app: publication
repository: ${{ github.repository }}
ref: ${{ github.ref_name }}
dockerfile: docker/Dockerfile.publication
docker_image: publication
cluster: ${{ vars.DEV_STAGING_CLUSTER }}
cluster_state_storage: ${{ vars.DEV_STAGING_KOPS_STATE_STORAGE }}
project: frontend_application
application_type: frontend