Skip to content
Permalink
Browse files

Merge #3

3: More CI r=CAD97 a=CAD97



Co-authored-by: CAD97 <cad97@cad97.com>
  • Loading branch information
bors and CAD97 committed Jan 9, 2020
2 parents dbde383 + 1882495 commit ccc77ebae512f631228e5be5b426802fe0cbbdfe
Showing with 58 additions and 2 deletions.
  1. +55 −2 .github/workflows/ci.yaml
  2. +3 −0 bors.toml
@@ -19,7 +19,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v1

- name: Install Rust toolchain
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: beta
@@ -36,15 +36,68 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --no-run
args: --all --all-targets --examples --no-run

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --all-targets --examples

- name: Prepare build directory for cache
run: |
find ./target/debug -maxdepth 1 -type f -delete \
&& rm -fr ./target/debug/{deps,.fingerprint}/{*erasable*,*ptr-union*,*rc-borrow*,*rc-box*} \
&& rm -f ./target/.rustc_info.json
fmt:
name: Rustfmt
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
CARGO_INCREMENTAL: 0
steps:

- name: Checkout repository
uses: actions/checkout@v1

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: beta
override: true
components: rustfmt

- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

check:
name: Clippy
runs-on: ubuntu-latest
env:
RUSTFLAGS: -D warnings
CARGO_INCREMENTAL: 0
steps:

- name: Checkout repository
uses: actions/checkout@v1

- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: beta
override: true
components: clippy

- name: Check style
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all --all-targets

# cargo-miri does'nt support workspaces and I don't know how to get it working here yet
@@ -0,0 +1,3 @@
status = [
"CI",
]

0 comments on commit ccc77eb

Please sign in to comment.
You can’t perform that action at this time.