Perform ytsearch: by default #10
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: "Check code" | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- "src/**" | |
- "Cargo.toml" | |
- "Cargo.lock" | |
pull_request: | |
branches: [ "main" ] | |
paths: | |
- "src/**" | |
- "Cargo.toml" | |
- "Cargo.lock" | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
check: | |
name: "Run cargo check on the whole project" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Setup the Rust stable toolchain" | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: "stable" | |
override: true | |
- name: "Checkout the repository" | |
uses: actions/checkout@v2 | |
- name: "Run cargo check" | |
uses: actions-rs/cargo@v1 | |
with: | |
command: "check" | |