Skip to content

Commit

Permalink
Add bors config
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholastmosher committed Jun 21, 2021
1 parent 7346841 commit 9f19b10
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: CI

on:
push:
branches: [main]
branches:
- staging
- trying
pull_request:
branches: [main]
workflow_dispatch:

jobs:

check_clippy:
clippy:
name: Clippy
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -24,8 +25,9 @@ jobs:
override: true
- name: check clippy
run: make check-clippy RUSTV=${{ matrix.rust }}
check_fmt:
name: check cargo fmt

rustfmt:
name: Rustfmt
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -56,4 +58,11 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true
- name: Run unit tests
run: make test-all
run: make test-all

done:
name: "Done!"
needs: [clippy, rustfmt, unit_test]
runs-on: ubuntu-latest
steps:
- run: echo "Done!"
6 changes: 6 additions & 0 deletions bors.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
status = [
"Done",
]
use_squash_merge = true
delete_merged_branches = true
timeout_sec = 1800 # 30 mins

0 comments on commit 9f19b10

Please sign in to comment.