From 297e97e01083090a90b82b90af91e191bf31ecab Mon Sep 17 00:00:00 2001 From: One <43485962+c-git@users.noreply.github.com> Date: Sun, 22 Dec 2024 23:26:25 -0500 Subject: [PATCH] ci: add job to verify shuttle mode in PR --- .github/workflows/ensure_shuttle_mode.yml | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ensure_shuttle_mode.yml diff --git a/.github/workflows/ensure_shuttle_mode.yml b/.github/workflows/ensure_shuttle_mode.yml new file mode 100644 index 0000000..fb2af85 --- /dev/null +++ b/.github/workflows/ensure_shuttle_mode.yml @@ -0,0 +1,24 @@ +name: Ensure Shuttle Mode + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + types: [ opened, synchronize, reopened ] + branches: + - main + +env: + CARGO_TERM_COLOR: always + +jobs: + check_mode: + runs-on: ubuntu-latest + steps: + - uses: wykies/checkout@main + - uses: wykies/setup-rust-toolchain@main + - name: Test that code is set in shuttle mode + run: cargo run --bin switch-db -- --no-edit-only-copy shuttle + \ No newline at end of file