Cargo update #163
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 Code Quality and Tests | |
on: | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: xorg-dev libxcb-shape0-dev libxcb-xfixes0-dev | |
version: 1.0 | |
- uses: actions/checkout@v3 | |
- name: Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: 'kolezanka' | |
- name: Build | |
run: cargo build --verbose | |
checks: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: awalsh128/cache-apt-pkgs-action@latest | |
with: | |
packages: xorg-dev libxcb-shape0-dev libxcb-xfixes0-dev | |
version: 1.0 | |
- uses: actions/checkout@v3 | |
- name: Rust cache | |
uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: 'kolezanka' | |
- name: Tests | |
run: cargo test --verbose | |
- name: Code Format | |
run: cargo fmt --check | |
- name: Code Lint | |
run: cargo clippy -- -D warnings |