Skip to content

chore: release v0.1.2 #1320

chore: release v0.1.2

chore: release v0.1.2 #1320

Workflow file for this run

name: CI
permissions:
contents: read
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/ci*.yml'
- 'Cargo.toml'
- 'Cargo.lock'
- 'benches/**'
- 'src/**'
env:
CARGO_TERM_COLOR: always
NEXTEST_RETRIES: 3
jobs:
test:
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install Rust
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Install cargo-nextest
uses: taiki-e/install-action@9ba3ac3fd006a70c6e186a683577abc1ccf0ff3a # v2.54.0
with:
tool: cargo-nextest
- name: Rust Cache
uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
- name: Run tests (unit)
run: cargo nextest run
- name: Run tests (sqlite)
run: cargo nextest run --test integration
- name: Run tests (mysql)
run: cargo nextest run --test integration --profile mysql --no-capture
- name: Run tests for postgres
run: cargo nextest run --test integration --profile postgres --no-capture
- name: Run Doc tests
run: cargo test --doc
openapi:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install Rust
uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Rust Cache
uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
- name: Generate OpenAPI
run: cargo run --bin keystone -- --dump-openapi yaml > openapi.yaml
- name: Upload OpenAPI spec
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: openapi.spec
path: openapi.yaml