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

CI: add dry run workflow #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: CI
on: [push, pull_request]
on: [ push, pull_request ]

jobs:
ci:
Expand All @@ -19,6 +19,11 @@ jobs:
- name: Run tests
run: cargo test

- name: Dry run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_API_READ_TOKEN }}
run: cargo run -- --only-print-plan github

- name: Build the Docker container
run: docker build -t sync-team .

Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/dry_run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Smoke test that checks if we can download team data and read from the GitHub API.
name: Dry run

on:
workflow_dispatch:
schedule:
# Try to dry run every 4 hours
- cron: "0 */4 * * *"

jobs:
run:
name: Perform a dry run
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- name: Dry run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_API_READ_TOKEN }}
run: cargo run -- --only-print-plan github
Loading