Skip to content

Update to ya-gcp v0.11 (#48) #152

Update to ya-gcp v0.11 (#48)

Update to ya-gcp v0.11 (#48) #152

Workflow file for this run

name: Test hedwig
on:
push:
paths-ignore:
- '*.md'
- 'LICENSE'
branches:
- master
pull_request:
types: [opened, repoened, synchronize]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy
default: true
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -Dclippy::correctness -Dclippy::complexity -Dclippy::perf -Dunsafe_code -Dunreachable_pub -Dunused
doc:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
default: true
- name: Doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features --manifest-path=Cargo.toml --no-deps
env:
RUSTDOCFLAGS: --cfg docsrs -Dmissing_docs -Drustdoc::broken_intra_doc_links
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
rust_toolchain: [nightly, stable, 1.64.0]
os: [ubuntu-latest]
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Install Rust ${{ matrix.rust_toolchain }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_toolchain }}
profile: minimal
default: true
- name: Build without features
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features --manifest-path=Cargo.toml
- name: Test with all features
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path=Cargo.toml --all-features -- --nocapture