writer error contains filename #242
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: rust CI | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: clippy,rustfmt | |
| - run: cargo clippy --all-targets -- -D warnings | |
| - run: cargo fmt -- --check | |
| compile: | |
| name: Compile | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - run: cargo build --verbose --release | |
| test: | |
| name: Test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| - windows-latest | |
| - macOS-latest | |
| toolchain: | |
| - stable 9 months ago | |
| - stable | |
| - nightly | |
| runs-on: ${{ matrix.os }} | |
| needs: [compile] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.toolchain }} | |
| - name: Build all packages | |
| run: cargo build --verbose | |
| - name: Run unit tests | |
| run: cargo test --verbose | |
| - name: Run integration tests | |
| run: cargo test --verbose --features allow-integration-tests | |
| doc: | |
| name: Generate Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| - run: cargo doc --no-deps | |
| spellcheck: | |
| name: Spell Check Documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Codespell | |
| run: pip install codespell | |
| - name: Run Codespell | |
| run: codespell | |
| copyright: | |
| name: Generate Copyright Notes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Cargo License | |
| run: cargo install cargo-license | |
| - name: Generate License Report | |
| run: cargo license | |
| security-audit: | |
| name: Security Audit | |
| runs-on: ubuntu-latest | |
| # move this to a separate job when merged to master | |
| # https://github.com/rustsec/audit-check | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Cargo Audit | |
| run: cargo install cargo-audit | |
| - name: Run Cargo Audit | |
| run: cargo audit |