Skip to content

Merge pull request #18 from goldwind-ting/feat-rt #41

Merge pull request #18 from goldwind-ting/feat-rt

Merge pull request #18 from goldwind-ting/feat-rt #41

Workflow file for this run

name: rucron
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: check
args: --all
check-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- uses: Swatinem/rust-cache@v1
- name: Default doc
run: cargo doc --no-deps
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --verbose
- name: Default tests
run: cargo test --verbose -- --test-threads 1
- name: Smol tests
run: cargo test --no-default-features --features smol -- --test-threads=1