Skip to content

Commit

Permalink
Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Nov 14, 2023
1 parent 267e05f commit 2b0918f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run Integration test

on:
push:
pull_request:

jobs:
integration-test:
runs-on: ubuntu-latest

steps:
- run: actions/checkout@v4
- run: docker compose up -d
working-directory: test
- run: test/await_healthy.sh
- uses: ./
name: Run test
with:
GL_SERVER_URL: http://127.0.0.1:8080
GL_PROJECT_ID: '1000'
GL_RUNNER_TOKEN: some_long_runner_token
GL_API_TOKEN: TEST1234567890123456
- run: docker compose down
working-directory: test
1 change: 1 addition & 0 deletions lib/action/pipeline_awaiter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def wait!
puts "Pipeline succeeded in #{duration} minutes!"
return
else
puts
puts "Pipeline #{status} in #{duration} minutes!"
raise PipelineFailed, 'Pipeline did not succeed!'
end
Expand Down
1 change: 1 addition & 0 deletions lib/action/step/start_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def execute
'Binds' => [
'/var/run/docker.sock:/var/run/docker.sock:ro'
],
'NetworkMode' => 'host'
}
)

Expand Down

0 comments on commit 2b0918f

Please sign in to comment.