fix(v0.0.12): snippets require rust,ignore
in docs
#8
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: Build and Test Library | |
on: | |
push: | |
paths: | |
- "src/**" | |
- "Cargo.toml" | |
- ".github/workflows/build.yml" # This file | |
branches: | |
- main | |
pull_request: | |
paths: | |
- "src/**" | |
- "Cargo.toml" | |
- ".github/workflows/build.yml" # This file | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Build project | |
run: cargo build --release | |
- name: Test project | |
run: cargo test |