From 68abad142adb207edd26b776dae62edb13f9aeb5 Mon Sep 17 00:00:00 2001 From: Maarten de Vries Date: Wed, 13 Dec 2023 18:58:38 +0100 Subject: [PATCH] Create local branches for the tests in CI. --- .github/workflows/rust.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6a0db1b..8783058 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -7,6 +7,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Create local branches for tests + run: | + for branch in test-root test-submodule-{a,b,c}; do + git branch --track "$branch" "origin/$branch" + done - name: Build run: cargo +stable build --verbose - name: Run tests @@ -19,6 +24,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Create local branches for tests + run: | + for branch in test-root test-submodule-{a,b,c}; do + git branch --track "$branch" "origin/$branch" + done - name: Build run: cargo +nightly build --verbose - name: Run tests