fmt.sh: cargo fmt Thu Feb 6 04:25:26 AM EET 2025 #9
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 Tests" | |
on: [push, pull_request] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
rust-tests: | |
name: "Rust Tests" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: "1.84" | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v3 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install cargo tools | |
shell: bash | |
run: | | |
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/master/install-from-binstall-release.sh | bash | |
cargo binstall --no-confirm cargo-watch | |
cargo binstall --no-confirm [email protected] | |
cargo binstall --no-confirm cargo-nextest | |
- name: Start Docker services | |
shell: bash | |
run: | | |
./start_docker.sh | |
sleep 5 | |
- name: Run database migrations | |
shell: bash | |
run: | | |
./migrate.sh | |
sleep 5 | |
- name: Run tests | |
shell: bash | |
run: | | |
./test.sh --no-fail-fast |