Skip to content

Commit 9d52d3f

Browse files
authored
chore: Backend include a step in the backend tests to ensure that the dcoker image still builds (#1023)
* include a step in the build to ensure that the dcoker image still builds * Update backend_test.yml * Update backend_test.yml * Update go.work
1 parent c1decab commit 9d52d3f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/backend_test.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
- name: Check out code into the Go module directory
2121
uses: actions/checkout@v4
2222

23+
- name: Test that the docker image still builds successfully
24+
run: |
25+
export COMMIT_SHA=$(git rev-parse --short HEAD)
26+
docker build -t testingbuild:latest --build-arg COMMIT_SHA=${COMMIT_SHA} . -f Dockerfile_backend
27+
2328
- name: Deps
2429
run: go get -v ./...
2530
working-directory: backend
@@ -32,4 +37,7 @@ jobs:
3237
run: go test -v ./...
3338
env:
3439
GITHUB_PAT_TOKEN: ${{ secrets.TOKEN_GITHUB }}
35-
working-directory: backend
40+
working-directory: backend
41+
42+
43+

go.work

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
go 1.21.5
1+
go 1.21.6
22

33
use (
44
./backend

0 commit comments

Comments
 (0)