chore: changelog #847
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
| on: [push, pull_request] | |
| name: Continuous Integration | |
| jobs: | |
| check: | |
| name: cargo-check | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust: | |
| - stable | |
| - beta | |
| - stable minus 8 releases | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - name: check default-features | |
| run: cargo check | |
| - name: check all-features | |
| run: cargo check --all-features | |
| - name: check strict-dates | |
| run: cargo check --features strict-dates | |
| check-minimal-versions: | |
| name: cargo-check-minimal-versions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - name: Update dependencies to minimal versions | |
| run: cargo update -Z minimal-versions | |
| - name: cargo check (minimal versions) | |
| run: cargo check | |
| - name: cargo check --all-features (minimal versions) | |
| run: cargo check --all-features | |
| test: | |
| name: cargo-test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| features: | |
| - "" # no features | |
| - "parser" # default feature | |
| - "parser,strict-dates" # parser variant | |
| - "parser,serde_json" # serde_json implies serde | |
| - "parser,chrono-tz" | |
| - "parser,time" | |
| - "chrono-tz" # works without parser | |
| - "time" # works without parser | |
| - "parser,serde_json,chrono-tz,time" # all features combined | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: test with features (${{ matrix.features }}) | |
| run: cargo test --no-default-features --features "${{ matrix.features }}" | |
| fmtclippy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: cargo-clippy | |
| run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| - name: cargo-fmt | |
| run: cargo fmt --all --check | |
| deny-check: | |
| name: cargo-deny check | |
| runs-on: ubuntu-latest | |
| continue-on-error: ${{ matrix.checks == 'advisories' }} | |
| strategy: | |
| matrix: | |
| checks: | |
| - advisories | |
| - bans licenses sources | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: EmbarkStudios/cargo-deny-action@v1 | |
| with: | |
| command: check ${{ matrix.checks }} | |
| arguments: --all-features |