Fix issues with insecure default password #23
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: Check backend (Rust) | |
on: | |
push: | |
branches: main | |
paths: | |
- backend-rust/** | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: [ main ] | |
paths: | |
- backend-rust/** | |
env: | |
RUST_FMT: "nightly-2023-04-01" | |
RUST_VERSION: "1.80" | |
jobs: | |
rustfmt: | |
name: format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check formatting | |
working-directory: backend-rust | |
run: | | |
rustup default ${{ env.RUST_FMT }} | |
rustup component add rustfmt | |
cargo fmt -- --color=always --check | |
clippy: | |
name: clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Rust | |
run: | | |
rustup default ${{ env.RUST_VERSION }} | |
rustup component add clippy | |
- name: Run clippy | |
working-directory: backend-rust | |
run: | | |
cargo clippy --color=always --tests -- -D warnings | |
test: | |
name: test | |
# Don't run on draft pull requests | |
if: ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Run unit tests | |
working-directory: backend-rust | |
run: | | |
rustup default ${{ env.RUST_VERSION }} | |
cargo test |