build: add justfile #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [pull_request, push] | |
name: Tests | |
jobs: | |
build_and_test: | |
name: Rust tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust_version: [1.62, stable] | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust_version }} | |
default: true | |
- name: All feature tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace --all-features | |
- name: Build without features | |
uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --workspace --no-default-features | |
- name: Normal tests without extra features (but derive is enabled) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --workspace --no-default-features --features=derive |