mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-06-03 14:24:10 +00:00
3fa5b8a55c
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
34 lines
711 B
YAML
34 lines
711 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
check_binary:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy
|
|
- name: Build
|
|
run: cargo build --verbose
|
|
- name: Run tests
|
|
run: cargo test --verbose
|
|
- uses: clechasseur/rs-fmt-check@v2
|
|
with:
|
|
args: --all -- --check
|
|
- uses: giraffate/clippy-action@v1
|
|
with:
|
|
clippy-flags: -- -D warnings
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|