Allows using aliases within the config file #292
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: CI | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['*'] | |
jobs: | |
clippy: | |
name: Check code formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install protoc | |
run: sudo apt install -y protobuf-compiler | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/cargo@v1 | |
name: cargo fmt | |
with: | |
command: fmt | |
args: --check | |
- uses: actions-rs/cargo@v1 | |
name: cargo clippy | |
with: | |
command: clippy | |
args: -- --deny warnings | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install protoc | |
run: sudo apt install -y protobuf-compiler | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- uses: actions-rs/cargo@v1 | |
name: cargo build | |
with: | |
command: build | |
args: --release --all-features | |
- uses: actions-rs/cargo@v1 | |
name: cargo test | |
with: | |
command: test | |
args: --all-targets --benches |