Skip to content

Fix doc tests

Fix doc tests #15

Workflow file for this run

name: ci
on:
pull_request:
push:
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
rust: ["stable", "nightly"]
no_std: [true, false]
debug: [true, false]
unsafe_impl: [true, false]
ptr_metadata: [true, false]
error_in_core: [true, false]
allocator_api: [true, false]
os: [ubuntu-latest, windows-latest, macos-latest]
exclude:
- rust: stable
ptr_metadata: true
- rust: stable
error_in_core: true
- rust: stable
allocator_api: true
- rust: nightly
ptr_metadata: false
- rust: nightly
error_in_core: false
- rust: nightly
allocator_api: false
runs-on: ${{ matrix.os }}
name: |

Check failure on line 36 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 36, Col: 11): Unexpected symbol: '"no_std'. Located at position 27 within expression: (matrix.no_std == true && "no_std,") || "" .github/workflows/ci.yml (Line: 53, Col: 14): Unexpected symbol: '"no_std'. Located at position 27 within expression: (matrix.no_std == true && "no_std,") || ""
test - ${{ matrix.os }}; ${{ matrix.rust }} rust; features:
${{ (matrix.no_std == true && "no_std,") || "" }}
${{ (matrix.debug == true && "debug,") || "" }}
${{ (matrix.unsafe_impl == true && "unsafe_impl,") || "" }}
${{ (matrix.ptr_metadata == true && "ptr_metadata,") || "" }}
${{ (matrix.error_in_core == true && "error_in_core,") || "" }}
${{ (matrix.allocator_api == true && "allocator_api,") || "" }}
env:
RUST_BACKTRACE: 1 # Emit backtraces on panics.
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- run: |
echo "FEATURES=
${{ (matrix.no_std == true && "no_std,") || "" }}
${{ (matrix.debug == true && "debug,") || "" }}
${{ (matrix.unsafe_impl == true && "unsafe_impl,") || "" }}
${{ (matrix.ptr_metadata == true && "ptr_metadata,") || "" }}
${{ (matrix.error_in_core == true && "error_in_core,") || "" }}
${{ (matrix.allocator_api == true && "allocator_api,") || "" }}
" >> $GITHUB_ENV
- run: cargo test --no-default-features --features=${{ env.FEATURES }} --verbose
lint:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: clippy
override: true
- run: cargo clippy --all-features -- -D warnings # Deny clippy warnings
miri:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- name: Install Miri
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
components: miri
override: true
- run: cargo miri setup
- run: cargo miri test --all-features --verbose --color=always