From d4953b9166d51f71dd6a7afc6b94330f41d1eaed Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 15 Dec 2020 11:25:54 +0100 Subject: [PATCH] add bors --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ bors.toml | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 bors.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1dc7d846..981d15cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -126,3 +126,31 @@ jobs: - name: Build and Run QEMU tests working-directory: firmware/qemu run: ./test.sh + + # Refs: https://github.com/rust-lang/crater/blob/9ab6f9697c901c4a44025cf0a39b73ad5b37d198/.github/workflows/bors.yml#L125-L149 + # bors.tech integration + ci-success: + name: ci + if: ${{ success() }} + needs: + - test + - no-std + - mdbook + - qemu + runs-on: ubuntu-20.04 + steps: + - name: CI succeeded + run: exit 0 + + ci-failure: + name: ci + if: ${{ !success() }} + needs: + - test + - no-std + - mdbook + - qemu + runs-on: ubuntu-20.04 + steps: + - name: CI failed + run: exit 1 diff --git a/bors.toml b/bors.toml new file mode 100644 index 00000000..30ef4e2e --- /dev/null +++ b/bors.toml @@ -0,0 +1,2 @@ +delete_merged_branches = true +status = ["ci"] \ No newline at end of file