Skip to content

Commit

Permalink
build: eagerly terminate agent
Browse files Browse the repository at this point in the history
  • Loading branch information
npepinpe committed Dec 29, 2024
1 parent 13c882c commit 5c88939
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
jobs:
core-cloud:
env:
TC_CLOUD_TOKEN: ${{ secrets.TC_CLOUD_TOKEN }}
TC_CLOUD_CONCURRENCY: 4
name: Test (Cloud) - core
runs-on: ubuntu-latest
Expand All @@ -31,6 +30,11 @@ jobs:
timeout-minutes: 20
run: >
./mvnw -B -Pparallel-tests -DforkCount=2C -DskipChecks -pl core verify
- name: Terminate Testcontainers Cloud Client active sessions
if: always()
uses: atomicjar/testcontainers-cloud-setup-action@v1
with:
action: terminate
- name: Archive Test Results
uses: actions/upload-artifact@v4
if: always()
Expand Down Expand Up @@ -66,7 +70,6 @@ jobs:
retention-days: 3
engine:
env:
TC_CLOUD_TOKEN: ${{ secrets.TC_CLOUD_TOKEN }}
TC_CLOUD_CONCURRENCY: 4
name: Test (Cloud) - engine
runs-on: ubuntu-latest
Expand All @@ -89,6 +92,11 @@ jobs:
timeout-minutes: 20
run: >
./mvnw -B -Pparallel-tests -DforkCount=2C -DskipChecks -pl engine verify
- name: Terminate Testcontainers Cloud Client active sessions
if: always()
uses: atomicjar/testcontainers-cloud-setup-action@v1
with:
action: terminate
- name: Archive Test Results
uses: actions/upload-artifact@v4
if: always()
Expand Down

0 comments on commit 5c88939

Please sign in to comment.