Skip to content

EE+Bus Weekly Test

EE+Bus Weekly Test #17

Workflow file for this run

name: EE+Bus Weekly Test
on:
workflow_dispatch:
schedule:
- cron: "59 22 * * 0"
jobs:
test:
name: Run Weekly Tests
runs-on: ubuntu-latest
steps:
- name: Checkout the code (with full history & submodules)
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Check if changes were made this week
id: check_changes
run: |
# Fetch commits from the past 7 days
RECENT_COMMITS=$(git log --since="7 days ago" --oneline)
echo "Recent commits:"
echo "$RECENT_COMMITS"
if [ -z "$RECENT_COMMITS" ]; then
echo "No changes found this week. Skipping tests."
exit 0
fi
- name: Run tests
if: steps.check_changes.outcome == 'success'
run: |
cargo test --package librustee --verbose --lib --bins --tests