Files
chronos/.gitea/workflows/ci.yaml
LordBaryhobal 4ae06a5f03
All checks were successful
CI / tests (push) Successful in 24s
changed CI cache action
2025-07-15 00:20:20 +02:00

43 lines
1.0 KiB
YAML

name: CI
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
jobs:
tests:
runs-on: ubuntu-latest
container: catthehacker/ubuntu:rust-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: https://github.com/LordBaryhobal/gitea-cache-action@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
save-always: true
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Install tytanic
run: cargo binstall tytanic@0.2.2
- name: Run test suite
run: tt run
- name: Archive artifacts
uses: https://gitea.com/actions/gitea-upload-artifact@v4
if: always()
with:
name: artifacts
path: |
tests/**/diff/*.png
tests/**/out/*.png
tests/**/ref/*.png
retention-days: 5