Skip to content

Commit 6af9522

Browse files
author
Jacob Woffenden
committed
Update Makefile
Add test Signed-off-by: Jacob Woffenden <jacob.woffenden@digital.justice.gov.uk>
1 parent d275cef commit 6af9522

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

.github/workflows/test.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: 🧪 Test
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
permissions: {}
10+
11+
jobs:
12+
test:
13+
name: Test
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
steps:
18+
- name: Checkout
19+
id: checkout
20+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
21+
22+
- name: Set Up Container Structure Test
23+
id: setup_container_structure_test
24+
uses: ministryofjustice/github-actions/setup-container-structure-test@8e1bfc920f829ce408a5ef84118fbc160e559066 # v18.1.2
25+
26+
- name: Test
27+
id: test
28+
shell: bash
29+
env:
30+
IMAGE_TAG: ${{ github.sha }}
31+
run: |
32+
make test

Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
IMAGE_NAME = ghcr.io/ministryofjustice/analytical-platform-cloud-development-environment-base
2-
IMAGE_TAG = local
1+
.PHONY test build
2+
3+
IMAGE_NAME ?= ghcr.io/ministryofjustice/analytical-platform-cloud-development-environment-base
4+
IMAGE_TAG ?= local
35

46
test: build
57
container-structure-test test --platform linux/amd64 --config test/container-structure-test.yml --image $(IMAGE_NAME):$(IMAGE_TAG)

0 commit comments

Comments
 (0)