Merge pull request #119 from theidexisted/patch-1 #133
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| 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/cargo-install@v3.0.0 | |
| with: | |
| crate: tytanic | |
| version: '0.2.1' | |
| - 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 |