Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

fix(credential): only truncate trailing newline #228

fix(credential): only truncate trailing newline

fix(credential): only truncate trailing newline #228

Workflow file for this run

name: Continuous integration
on: [pull_request, push]
env:
RUSTFLAGS: -D warnings
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: stable-check
- run: cargo doc --no-deps --locked
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- run: cargo fmt -- --check
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
shared-key: stable-check
- run: cargo clippy --locked
MSRV:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Retrieve rust-version
run: echo rust-version=$(awk '/rust-version/{print $NF}' Cargo.toml | tr -d '"') >> $GITHUB_ENV
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.rust-version }}
- uses: Swatinem/rust-cache@v2
- run: cargo check --locked
test:
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test --locked