dufs/.github/workflows/ci.yaml

46 lines
667 B
YAML
Raw Normal View History

2022-05-26 15:08:02 +03:00
name: CI
on:
pull_request:
branches:
- '*'
push:
branches:
- main
defaults:
run:
shell: bash
jobs:
all:
name: All
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{matrix.os}}
env:
RUSTFLAGS: --deny warnings
steps:
2023-07-04 05:25:49 +03:00
- uses: actions/checkout@v3
2022-05-26 15:08:02 +03:00
- name: Install Rust Toolchain Components
2023-07-04 05:25:49 +03:00
uses: dtolnay/rust-toolchain@stable
2022-05-26 15:08:02 +03:00
2023-07-04 05:25:49 +03:00
- uses: Swatinem/rust-cache@v2
2022-05-26 15:08:02 +03:00
- name: Test
run: cargo test --all
- name: Clippy
run: cargo clippy --all --all-targets
- name: Format
run: cargo fmt --all --check