-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.62 KB
/
release.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
name: Release (NPM)
on:
push:
branches: ['main']
jobs:
static-checks-npm:
uses: digicatapult/shared-workflows/.github/workflows/static-checks-npm.yml@main
with:
matrix_commands: '["lint", "depcheck", "check"]'
tests-unit:
uses: digicatapult/shared-workflows/.github/workflows/tests-npm.yml@main
with:
docker_compose_file: ''
npm_build_command: 'npm run build:tsoa'
tests: '["test:unit"]'
tests-offchain:
uses: digicatapult/shared-workflows/.github/workflows/tests-npm.yml@main
with:
docker_compose_file: './docker-compose-test.yml'
npm_build_command: 'npm run build:tsoa'
pre_test_command: 'npm run db:migrate'
tests: '["test:offchain"]'
tests-onchain:
uses: digicatapult/shared-workflows/.github/workflows/tests-npm.yml@main
with:
docker_compose_file: './docker-compose-test.yml'
npm_build_command: 'npm run build:tsoa'
pre_test_command: 'npm run db:migrate && npm run flows'
tests: '["test:onchain"]'
build-docker:
needs: [tests-unit, tests-offchain, tests-onchain, static-checks-npm]
uses: digicatapult/shared-workflows/.github/workflows/build-docker.yml@main
with:
push_dockerhub: true
push_ghcr: true
permissions:
packages: write
contents: write
secrets:
DOCKERHUB_TOKEN: ${{ secrets.SQNC_DOCKERHUB_TOKEN }}
DOCKERHUB_USERNAME: ${{ secrets.SQNC_DOCKERHUB_USERNAME }}
release-github:
needs: [build-docker]
uses: digicatapult/shared-workflows/.github/workflows/release-github.yml@main
permissions:
contents: write
pull-requests: read
secrets: inherit