Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
on: pull_request

name: test
jobs:
build_and_test:
name: Build and test on ${{ matrix.os }}
check_src:
name: nightly on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -35,8 +36,8 @@ jobs:
command: test
args: --all --doc --features unstable

check_fmt_and_docs:
name: Checking fmt and docs
check_docs:
name: rustdoc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand All @@ -53,15 +54,12 @@ jobs:

- name: setup
run: |
rustup component add rustfmt
test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh
rustc --version

- name: mdbook
run: |
mdbook build docs
- name: fmt
run: cargo fmt --all -- --check

- name: Docs
run: cargo doc --features docs,unstable
23 changes: 21 additions & 2 deletions .github/workflows/clippy.yml → .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
on: pull_request

name: Clippy check
name: style
jobs:
clippy_check:
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
Expand All @@ -18,3 +19,21 @@ jobs:
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

fmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- id: component
uses: actions-rs/components-nightly@v1
with:
component: rustfmt
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ steps.component.outputs.toolchain }}
override: true
- name: setup
run: rustup component add rustfmt
- name: fmt
run: cargo fmt --all -- --check
11 changes: 10 additions & 1 deletion bors.toml
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
status = ["continuous-integration/travis-ci/push"]
status = [
"test (stable)",
"test (beta)",
"test (nightly)",
"test (macos)",
"style (clippy)",
"style (rustfmt)",
"style (rustdoc)",
]
delete_merged_branches = true