Update libs with Statistics
endpoints
#370
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust Lint | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'rust/**' | |
- '.github/workflows/rust-lint.yml' | |
pull_request: | |
paths: | |
- 'rust/**' | |
- '.github/workflows/rust-lint.yml' | |
- "openapi.json" | |
jobs: | |
test-versions: | |
name: Rust Lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: [stable, beta] | |
steps: | |
- uses: actions/checkout@master | |
- name: Regen openapi libs | |
run: | | |
yarn | |
./regen_openapi.sh | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
profile: minimal | |
components: clippy, rustfmt | |
- uses: Swatinem/rust-cache@v1 | |
with: | |
working-directory: rust | |
- name: Clippy | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --manifest-path rust/Cargo.toml --all --all-targets --all-features -- -D warnings | |
- name: rustfmt | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --manifest-path rust/Cargo.toml --all -- --check | |
- name: Run tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --manifest-path rust/Cargo.toml --all |