Skip to content

dev: v0.6

dev: v0.6 #146

Workflow file for this run

name: Test
on:
workflow_call: { }
push:
branches:
- master
paths-ignore:
- .github/CODE_OF_CONDUCT.md
- .github/CODEOWNERS
- .github/dependabot.yml
- .github/FUNDING.yml
- .github/workflows/release.yml
- LICENSE
- .gitignore
pull_request:
paths-ignore:
- .github/CODE_OF_CONDUCT.md
- .github/CODEOWNERS
- .github/dependabot.yml
- .github/FUNDING.yml
- .github/workflows/release.yml
- LICENSE
- .gitignore
permissions:
contents: read
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: --deny warnings
RUSTDOCFLAGS: --deny warnings
jobs:
doc:
name: Doc build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Init toolchain
uses: alorel-actions/cargo/init@v1
id: toolchain
with:
cache-prefix: doc
local: true
- name: Doc
run: cargo doc --workspace --no-deps --locked
- name: Cleanup
run: rm -rf target/doc
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Init toolchain
uses: alorel-actions/cargo/init@v1
id: toolchain
with:
components: rustfmt,clippy
cache-prefix: lint
local: true
- name: Fmt
run: cargo fmt --check
- name: Clippy
run: cargo clippy --workspace --tests --all-features --locked --no-deps
feature:
uses: ./.github/workflows/unit-test.yml
with:
flags: ${{ matrix.flags }}
strategy:
fail-fast: false
matrix:
flags:
- ''
- --features cursors
- --features dates
- --features indices
- --features list-databases
- --features serde
- --features "cursors streams"
- --features switch
- --features typed-arrays
- --features "typed-arrays serde"
- --features "cursors streams serde"
- --features "indices serde"
- --features "indices cursors"
- --features "indices cursors serde"
- --features "indices cursors streams"
- --features "indices cursors streams serde"
- --features "dates serde"
- --features "cursors serde"
rust-version:
uses: ./.github/workflows/unit-test.yml
with:
toolchain: ${{ matrix.toolchain }}
flags: --all-features
strategy:
fail-fast: false
matrix:
toolchain:
- nightly-2024-07-25
- stable
- 1.75.0
done:
name: All tests
runs-on: ubuntu-latest
needs:
- doc
- lint
- feature
- rust-version
steps:
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 0
fetch-tags: true
- name: Generate changelog
id: changelog
uses: ./.github/actions/changelog
- name: Echo changelog
run: echo -e "${{ steps.changelog.outputs.changelog }}"