Skip to content

Merge pull request #3 from jubako/version_0.2.0 #20

Merge pull request #3 from jubako/version_0.2.0

Merge pull request #3 from jubako/version_0.2.0 #20

Workflow file for this run

name: Cargo Build & Test
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
strategy:
fail-fast: false
matrix:
toolchain:
- stable
- beta
- nightly
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup rust toolchain ${{ matrix.toolchain }}
run: |
rustup update ${{ matrix.toolchain }}
rustup default ${{ matrix.toolchain }}
rustup component add rustfmt
- name: Check format
run: cargo fmt --check
- name: Build
run: cargo build --workspace
- name: Test code
run: cargo test --workspace