This repository has been archived on 2025-08-25. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Alexandria/.forgejo/workflows/test.yml
2025-08-14 17:54:51 +02:00

21 lines
743 B
YAML

on: [push, pull_request]
jobs:
test:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Cache Cargo Build
uses: actions/cache@v4
env:
cache-name: cache-cargo-build
with:
path: |
target/debug
~/.cargo/registry
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-${{ env.cache-name }}-
- name: Install rust toolchain
uses: https://github.com/dtolnay/rust-toolchain@stable
- run: JWT_SECRET="$(./scripts/generate_secret.sh)" cargo test --verbose