-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
321 additions
and
163 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
merge_group: | ||
types: [checks_requested] | ||
push: | ||
branches: [master] | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
read_msrv: | ||
name: Read MSRV | ||
uses: actions-rust-lang/msrv/.github/workflows/msrv.yml@v0.1.0 | ||
|
||
rust: | ||
needs: read_msrv | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- { name: Linux, runner: ubuntu-latest } | ||
- { name: macOS, runner: macos-latest } | ||
- { name: Windows, runner: windows-latest } | ||
toolchain: | ||
- { name: stable, version: stable } | ||
- { name: msrv, version: "${{ needs.read_msrv.outputs.msrv }}" } | ||
|
||
name: ${{ matrix.os.name }} / ${{ matrix.toolchain.name }} | ||
runs-on: ${{ matrix.os.runner }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust (${{ matrix.toolchain.name }}) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.10.1 | ||
with: | ||
toolchain: ${{ matrix.toolchain.version }} | ||
|
||
- name: Install just, nextest | ||
uses: taiki-e/install-action@v2.44.25 | ||
with: | ||
tool: just,nextest | ||
|
||
- name: Test | ||
run: just test |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Coverage | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.10.1 | ||
with: | ||
components: llvm-tools-preview | ||
|
||
- name: Install just & cargo-llvm-cov | ||
uses: taiki-e/install-action@v2.44.5 | ||
with: | ||
tool: just,cargo-llvm-cov | ||
|
||
- name: Generate code coverage | ||
run: just test-coverage-codecov | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4.5.0 | ||
with: | ||
files: codecov.json | ||
fail_ci_if_error: true | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
clippy: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.10.1 | ||
with: | ||
components: clippy | ||
|
||
- name: Install just, cargo-hack | ||
uses: taiki-e/install-action@v2.44.25 | ||
with: | ||
tool: just,cargo-hack | ||
|
||
- name: Check with Clippy | ||
run: just clippy | ||
|
||
rustfmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.10.1 | ||
with: | ||
toolchain: nightly | ||
components: rustfmt | ||
|
||
- name: Check with Rustfmt | ||
run: cargo fmt -- --check | ||
|
||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust (nightly) | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.10.1 | ||
with: | ||
toolchain: nightly | ||
components: rust-docs | ||
|
||
- name: Check for broken intra-doc links | ||
env: | ||
RUSTDOCFLAGS: -D warnings | ||
run: cargo doc --workspace --no-deps --all-features | ||
|
||
sorted-deps: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1.10.1 | ||
with: | ||
components: clippy | ||
|
||
- name: Install just, cargo-sort | ||
uses: taiki-e/install-action@v2.44.25 | ||
with: | ||
tool: just,cargo-sort | ||
|
||
- name: Check dependency requirements are sorted lexicographically | ||
run: cargo sort --workspace --check |
This file was deleted.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.