Skip to content

Commit

Permalink
Add lots of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Nov 2, 2024
1 parent 1c5872c commit b48feef
Show file tree
Hide file tree
Showing 70 changed files with 1,584 additions and 634 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.png filter=lfs diff=lfs merge=lfs -text
6 changes: 4 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [push, pull_request]
on: [ push, pull_request ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -11,7 +11,7 @@ jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Install packages (Linux)
Expand Down Expand Up @@ -41,6 +41,8 @@ jobs:

- name: Test
uses: actions-rs/cargo@v1
# Snapshot tests only work on macos, since they require a gpu
if: ${{ matrix.os == 'macos-latest' }}
with:
command: test
args: --all-features --workspace
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
fancy-example/dist

.DS_Store

**/tests/snapshots/**/*.diff.png
**/tests/snapshots/**/*.new.png
Loading

0 comments on commit b48feef

Please sign in to comment.