1 parent 7519577 commit 5874cc2Copy full SHA for 5874cc2
1 file changed
.github/workflows/ci.yml
@@ -0,0 +1,40 @@
1
+---
2
+name: CI
3
+
4
+on:
5
+ push:
6
+ branches: [main]
7
+ pull_request:
8
9
10
+jobs:
11
+ test:
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ matrix:
15
+ os: [ubuntu-latest, macos-latest, windows-latest]
16
17
+ defaults:
18
+ run:
19
+ shell: bash
20
21
+ steps:
22
+ - uses: actions/checkout@v4
23
24
+ - name: Setup Rust
25
+ uses: actions-rs/toolchain@v1
26
+ with:
27
+ toolchain: stable
28
+ profile: minimal
29
+ override: true
30
31
+ - name: Run tests
32
+ run: cargo test
33
34
+ - name: Check for snapshot changes
35
+ run: |
36
+ if git status --porcelain tests/languages | grep -q "snapshots/"; then
37
+ echo "Error: Snapshot files have changed. Run 'cargo insta review' locally and commit the changes."
38
+ git diff -- tests/languages/*/snapshots
39
+ exit 1
40
+ fi
0 commit comments