1 parent 4717df4 commit 6fd0a31Copy full SHA for 6fd0a31
1 file changed
.github/workflows/ci.yml
@@ -2,12 +2,13 @@ name: CI
2
3
on:
4
push:
5
- branches: [ "mvp" ]
+ branches: [ "mvp", "main" ]
6
pull_request:
7
8
workflow_dispatch:
9
10
concurrency:
- group: ci-${{ github.ref }}
11
+ group: ${{ github.workflow }}-${{ github.ref }}
12
cancel-in-progress: true
13
14
env:
@@ -43,9 +44,10 @@ jobs:
43
44
run: |
45
if [ ! -d ".sqlx" ]; then
46
echo "❌ ERROR: .sqlx directory missing. CI cannot compile in offline mode."
- echo "Run 'cargo sqlx prepare --workspace' locally and commit the .sqlx folder."
47
+ echo "Please run 'cargo sqlx prepare --workspace' in the root folder locally and commit the results."
48
exit 1
49
fi
50
+ echo "SQLx offline metadata found ✅"
51
52
- name: cargo fmt
53
run: cargo fmt --all -- --check
0 commit comments