Skip to content

Set MSRV to 1.65.0 (#33) #24

Set MSRV to 1.65.0 (#33)

Set MSRV to 1.65.0 (#33) #24

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
test:
name: ${{ matrix.os }} / Rust ${{ matrix.rust }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
rust: [stable]
include:
- os: ubuntu-latest
rust: 1.65.0 # MSRV
- os: ubuntu-latest
rust: beta
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- run: cd hjson && cargo build --release
- if: matrix.rust != '1.65.0'
run: cd hjson_cli && cargo build --release
- run: |
if [ '${{ matrix.rust }}' == '1.65.0' ]; then
# because of 'clap_derive' it needs Rust 1.74+
cargo test --workspace --exclude hjson -- --nocapture
else
cargo test --workspace -- --nocapture
fi
- run: cd hjson && cargo doc