Setting environment variables #32
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: [ main ] | |
jobs: | |
ci: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dsherret/rust-toolchain-file@v1 | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check formatting | |
run: cargo fmt -- --check | |
- name: Check linting | |
run: cargo clippy --release --all-targets --all-features -- -D clippy::all | |
- name: Install SQLx CLI | |
run: cargo install sqlx-cli --no-default-features --features native-tls,postgres | |
- name: Check SQLx | |
run: cargo sqlx prepare --check --workspace |