Skip to content

Commit 6ea944a

Browse files
authored
add tests for next (#1818)
* add tests for next * fix build
1 parent 17e2d8c commit 6ea944a

File tree

5 files changed

+252
-18
lines changed

5 files changed

+252
-18
lines changed

.github/workflows/next_test.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Next Go Tests
3+
4+
"on":
5+
push:
6+
branches: ['develop']
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Download Go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version: 1.21.1
19+
id: go
20+
21+
- name: Check out code into the Go module directory
22+
uses: actions/checkout@v4
23+
24+
- name: Test that the docker image still builds successfully
25+
run: |
26+
export COMMIT_SHA=$(git rev-parse --short HEAD)
27+
docker build -t testingbuild:latest --build-arg COMMIT_SHA=${COMMIT_SHA} . -f Dockerfile_next
28+
29+
- name: Deps
30+
run: go get -v ./...
31+
working-directory: backend
32+
33+
- name: Build
34+
run: go build
35+
working-directory: backend
36+
37+
- name: Test
38+
run: go test -v ./...
39+
env:
40+
GITHUB_PAT_TOKEN: ${{ secrets.TOKEN_GITHUB }}
41+
working-directory: next

0 commit comments

Comments
 (0)