Skip to content

Commit

Permalink
add cron schedule and post job cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chinelo-obitube committed Nov 12, 2024
1 parent 27f2272 commit 1ca14a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build and Run Alegre Tests

on:
schedule:
- cron: '0 9 * * *' #Run daily at 9 UTC
push:
branches:
- master
Expand All @@ -10,7 +12,6 @@ on:
pull_request:
branches:
- develop


env:
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
Expand Down Expand Up @@ -93,6 +94,7 @@ jobs:
run: ./cc-test-reporter after-build -t coverage.py --exit-code $?

- name: Cleanup Docker Resources
if: always()
run: |
echo "Cleaning up Docker resources..."
docker stop $(docker ps -q)
Expand Down Expand Up @@ -167,6 +169,7 @@ jobs:
docker compose exec alegre make contract_testing
- name: Cleanup Docker Resources
if: always()
run: |
echo "Cleaning up Docker resources..."
docker stop $(docker ps -q)
Expand Down

0 comments on commit 1ca14a8

Please sign in to comment.