-
-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (39 loc) · 921 Bytes
/
run_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: tests
on:
push:
branches: [ main ]
paths:
- src/**
- tests/**
- examples/**
- .github/**
pull_request:
branches: [ main ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Probe runner package cache
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: cargo
version: 1.0
- name: Install tytanic from crates.io
uses: baptiste0928/[email protected]
with:
crate: tytanic
version: '0.2.0'
- name: Run test suite
run: tt run
- name: Archive artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: artifacts
path: |
tests/**/diff/*.png
tests/**/out/*.png
tests/**/ref/*.png
retention-days: 5