Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/languages/**/snapshots/*.snap linguist-language=YAML
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v4

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Install nextest
uses: taiki-e/install-action@nextest

- name: Run tests
run: cargo nextest run

- name: Check for snapshot changes
run: |
if git status --porcelain tests/languages | grep -q "snapshots/"; then
echo "Error: Snapshot files have changed. Run 'cargo insta review' locally and commit the changes."
git diff -- tests/languages/*/snapshots
exit 1
fi
Loading
Loading