File tree 5 files changed +252
-18
lines changed
5 files changed +252
-18
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments