Skip to content

Mark the V1 client as deprecated. #529

Mark the V1 client as deprecated.

Mark the V1 client as deprecated. #529

Workflow file for this run

name: Build and test
# This job runs
# - rustfmt and clippy linting,
# - cargo check
# - cargo test
on:
push:
branches: main
pull_request:
branches: main
workflow_dispatch: # allows manual trigger
env:
RUST_FMT: nightly-2023-04-01-x86_64-unknown-linux-gnu
RUST_VERSION: "1.65"
jobs:
"lint_fmt":
name: lint:fmt
# Don't run on draft pull requests
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_FMT }}
override: true
components: rustfmt
- name: Format
run: |
cargo fmt -- --color=always --check
"lint_clippy":
name: lint:clippy
# Don't run on draft pull requests
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
components: rustfmt, clippy
- name: Clippy
run: |
cargo clippy --features=postgres --color=always --tests --benches --examples -- -D warnings
"cargo_test":
name: cargo:test
runs-on: ubuntu-latest
needs:
- lint_clippy
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ env.RUST_VERSION }}
override: true
components: rustfmt
- name: Test
run: cargo test