Skip to content

Moved unsafe from Iban::rand to util::StrExt::copy_from_str #68

Moved unsafe from Iban::rand to util::StrExt::copy_from_str

Moved unsafe from Iban::rand to util::StrExt::copy_from_str #68

Workflow file for this run

permissions:
contents: read
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
name: test
jobs:
required:
runs-on: ubuntu-latest
name: required / ${{ matrix.toolchain }}
strategy:
matrix:
toolchain: [stable, beta]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- run: cargo test --locked --all-features --all-targets
- run: cargo test --locked --all-features --doc
minimal:
runs-on: ubuntu-latest
name: minimal-versions / stable
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly
- run: rustup default stable
- run: cargo +nightly update -Zdirect-minimal-versions
- run: cargo test --locked --all-features --all-targets
os-check:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} / stable
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
- if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- run: cargo test --locked --all-features --all-targets
coverage:
runs-on: ubuntu-latest
name: coverage / stable
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly
- uses: taiki-e/install-action@cargo-llvm-cov
- run: cargo llvm-cov --all-features --workspace --codecov --output-path codecov.json
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: codecov.json
fail_ci_if_error: true