Skip to content

Fix windows test issues #158

Fix windows test issues

Fix windows test issues #158

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches-ignore: [stable-docs, gh-pages]
pull_request:
branches-ignore: [stable-docs, gh-pages]
env:
CARGO_TERM_COLOR: always
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Install development tools
uses: taiki-e/install-action@v2
with:
tool: just
- name: Check format
run: just format --check
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install development tools
uses: taiki-e/install-action@v2
with:
tool: just,nextest
- name: Run build
run: just build
- name: Run clippy
run: just clippy
- name: Run tests
run: just test
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install development tools
uses: taiki-e/install-action@v2
with:
tool: just,nextest,cargo-llvm-cov
- name: Generate coverage
run: just coverage-codecov
- name: Upload coverage
if: ${{ github.event_name == 'push' }}
uses: codecov/codecov-action@v4
with:
file: codecov.json
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install development tools
uses: taiki-e/install-action@v2
with:
tool: just
- name: Run shellcheck
run: just shellcheck