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
Workflow config file is invalid. Please check your config file: yaml: line 13: did not find expected comment or line break
2025-08-09 20:56:27 +02:00

21 lines
700 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('**/libalexandria.rlib') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: rustup update stable && rustup default stable
- run: JWT_SECRET="$(./scripts/generate_secret.sh)" cargo test --verbose