refactor: Make environment variable name public (#367) #1
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 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| rust: | |
| name: Build, lint, test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install stable toolchain | |
| uses: dtolnay/[email protected] | |
| with: | |
| components: rustfmt, clippy | |
| - name: Install nextest | |
| uses: taiki-e/install-action@nextest | |
| - name: Check max line length | |
| # rustfmt gives up on lines that are too long | |
| if: runner.os == 'Linux' | |
| run: "! grep -rP '^.{101}' --include='*.rs' ." | |
| - name: Run fmt | |
| run: cargo fmt --all -- --check | |
| - name: Build documentation | |
| run: cargo doc --no-deps --workspace --document-private-items | |
| env: | |
| RUSTDOCFLAGS: -D warnings | |
| - name: Run clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: Run tests | |
| run: cargo nextest run --no-fail-fast --all-targets | |
| # doctests are special [^1] but this step does not incur a performance penalty [^2] | |
| # | |
| # [^1]: https://nexte.st/book/usage.html#limitations | |
| # [^2]: https://github.com/nextest-rs/nextest/issues/16 | |
| - name: Run documentation tests | |
| run: cargo test --doc |