Skip to content

Commit a3550c1

Browse files
committed
Add bors and more GHA workflows
Signed-off-by: Daniel Egger <[email protected]>
1 parent d71cc72 commit a3550c1

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed

.github/bors.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
required_approvals = 1
2+
block_labels = ["wip"]
3+
delete_merged_branches = true
4+
status = [
5+
"Rustfmt",
6+
"build (stable)",
7+
"build (1.51.0)",
8+
]

.github/workflows/changelog.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
pull_request_target:
3+
4+
name: Changelog check
5+
6+
jobs:
7+
changelog:
8+
name: Changelog check
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout sources
12+
uses: actions/checkout@v2
13+
14+
- name: Changelog updated
15+
uses: Zomzog/[email protected]
16+
with:
17+
fileName: CHANGELOG.md
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/clippy.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Clippy check
7+
jobs:
8+
clippy_check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- run: rustup component add clippy
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
toolchain: stable
16+
target: thumbv6m-none-eabi
17+
override: true
18+
- uses: actions-rs/clippy-check@v1
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
args: --examples

.github/workflows/rustfmt.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Code formatting check
7+
8+
jobs:
9+
fmt:
10+
name: Rustfmt
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions-rs/toolchain@v1
15+
with:
16+
profile: minimal
17+
toolchain: stable
18+
override: true
19+
- run: rustup component add rustfmt
20+
- uses: actions-rs/cargo@v1
21+
with:
22+
command: fmt
23+
args: --all -- --check

0 commit comments

Comments
 (0)