mirror of
https://github.com/HigherOrderCO/Kind1.git
synced 2024-10-26 13:38:47 +03:00
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
name: Cargo
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
cargo_check:
|
|
name: 👁️🗨️ Cargo Check
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 10
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: nightly
|
|
override: true
|
|
- uses: Swatinem/rust-cache@v1
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: check
|
|
|
|
cargo_test:
|
|
name: 🧪 Cargo Test
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 10
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: nightly
|
|
override: true
|
|
- uses: Swatinem/rust-cache@v2
|
|
- uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
# cargo_fmt:
|
|
# name: 💅 Cargo Fmt
|
|
# continue-on-error: true
|
|
# 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
|