Skip to content

Commit 0896e7f

Browse files
committed
chore(ci): run integration tests without docker container setup
1 parent cf52ee6 commit 0896e7f

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.github/workflows/build-test.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ jobs:
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/...

0 commit comments

Comments
 (0)