Skip to content

Refactor docker-compose.yml and src/main.rs for improved resource all… #63

Refactor docker-compose.yml and src/main.rs for improved resource all…

Refactor docker-compose.yml and src/main.rs for improved resource all… #63

Workflow file for this run

name: Rust CI
permissions: read-all
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Build
run: cargo build
- name: Run tests
run: cargo test