File tree Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change 8888 name : Integration Tests
8989 runs-on : [self-hosted, home]
9090 needs : [test-backend, test-frontend]
91-
92- services :
93- docker :
94- image : docker:24-dind
95- options : --privileged
9691
9792 steps :
9893 - name : Checkout code
@@ -102,20 +97,10 @@ jobs:
10297 uses : actions/setup-go@v5
10398 with :
10499 go-version : ' 1.21'
100+ cache : true
105101
106- - name : Build Docker image for testing
107- run : |
108- docker build -f deployments/Dockerfile -t ocpp-simulator:test .
102+ - name : Install dependencies
103+ run : go mod download
109104
110105 - name : Run integration tests
111- run : |
112- # Start the service in background
113- docker run -d --name simulator-test -p 8080:8080 ocpp-simulator:test
114- sleep 10
115-
116- # Run integration tests
117- go test -v ./tests/...
118-
119- # Cleanup
120- docker stop simulator-test
121- docker rm simulator-test
106+ run : go test -v ./tests/...
You can’t perform that action at this time.
0 commit comments