Files
movies-diary/.github/workflows/ci.yml
Gabriel Kaszewski 7415b91e23
Some checks failed
CI / Check / Test / Build (push) Failing after 2m6s
ci: add GitHub/Gitea Actions workflow
2026-05-13 23:35:05 +02:00

43 lines
831 B
YAML

name: CI
on:
push:
branches: ["**"]
pull_request:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
ci:
name: Check / Test / Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: fmt
run: cargo fmt --all -- --check
- name: test
run: cargo test
- name: build (release)
run: cargo build --release -p presentation -p worker