Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): make cf tests run daily on changes #99

Merged
merged 7 commits into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/cf_tests.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,29 @@
name: CF IT Tests

on: workflow_dispatch
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
cfTests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: |
echo "${{ github.event_name }}"
NEW_COMMIT_COUNT=$(git log --oneline --since '24 hours ago' | wc -l)
echo "$NEW_COMMIT_COUNT"
echo "CHANGE_COUNT=$NEW_COMMIT_COUNT" >> $GITHUB_ENV

- name: Set up JDK 11
uses: actions/setup-java@v3
if: ${{ github.event.event_name == 'workflow_dispatch' || env.CHANGE_COUNT > 0 }}
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Run CF Tests
if: ${{ github.event.event_name == 'workflow_dispatch' || env.CHANGE_COUNT > 0 }}
run: make cf-tests