chore(deps): bump regex from 1.3.1 to 1.10.2 #2
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 | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Proof Generator | |
uses: actions/checkout@v2 | |
- name: Install stable Rust (minimal) | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Cache stable | |
uses: Swatinem/rust-cache@v1 | |
- name: Check code | |
run: cargo check | |
- name: Build code | |
run: cargo build | |
- name: Run tests | |
run: cargo test | |
- name: Run example-1 | |
run: ./example/example-1.sh | |
- name: Run example-2 | |
run: ./example/example-2.sh | |
check_formating_and_clippy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Proof Generator | |
uses: actions/checkout@v2 | |
- name: Install nightly Rust (minimal with clippy and rustfmt) | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
components: rustfmt, clippy | |
- name: Cache nightly | |
uses: Swatinem/rust-cache@v1 | |
- name: Check code formatting | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- name: Check clippy | |
uses: actions-rs/clippy-check@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
args: -- -D warnings |