Skip to content

Bump version to 0.4 #16

Bump version to 0.4

Bump version to 0.4 #16

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
name: Test - ${{ matrix.build }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build:
- linux
- macos
- windows
include:
# Linux
- build: linux
label: linux_x64
os: ubuntu-latest
# Mac
- build: macos
label: macos_arm64
os: macos-latest
# Windows
- build: windows
label: windows_x64
os: windows-latest
steps:
- name: Checkout source code
uses: actions/checkout@v5
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: llvm-tools-preview
- name: Cache Rust
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
crates/target
key: ${{ runner.os }}-cargo-coverage-${{ hashFiles('crates/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-coverage-
- name: Install Rust Tools
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest, cargo-llvm-cov
- name: Run tests
run: cargo test
- name: Run tests (tokio)
run: cargo test --features tokio
- name: Run tests with coverage
run: cargo llvm-cov nextest --output-path codecov.json --codecov --features tokio
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
files: codecov.json
token: ${{ secrets.CODECOV_TOKEN }}