generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (52 loc) · 1.49 KB
/
pipeline_pr.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
name: PR
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
actions: write
jobs:
node_build:
name: Build
uses: ministryofjustice/hmpps-github-actions/.github/workflows/node_build.yml@v2
secrets: inherit
node_unit_tests:
name: Unit tests
uses: ministryofjustice/hmpps-github-actions/.github/workflows/node_unit_tests.yml@v2
needs: node_build
secrets: inherit
helm_lint:
name: Helm lint
strategy:
matrix:
environments: ['dev', 'test', 'preprod', 'prod']
uses: ministryofjustice/hmpps-github-actions/.github/workflows/test_helm_lint.yml@v2
secrets: inherit
with:
environment: ${{ matrix.environments }}
build_docker:
name: Build docker image
uses: ministryofjustice/hmpps-github-actions/.github/workflows/docker_build.yml@v2
with:
docker_registry: 'ghcr.io'
registry_org: 'ministryofjustice'
tag_latest: false
push: false
load: true
docker_multiplatform: false
upload_image_artifact: true
image_artifact_retention_days: 2
api_integration_tests:
needs: build_docker
uses: ./.github/workflows/api_integration_tests.yml
with:
app_version: ${{ needs.build_docker.outputs.app_version }}
e2e_test:
needs: build_docker
uses: ./.github/workflows/e2e_test.yml
secrets: inherit
with:
app_version: ${{ needs.build_docker.outputs.app_version }}