Skip to content

Commit 6fd0a31

Browse files
committed
(CI): update ci.yml file
1 parent 4717df4 commit 6fd0a31

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ name: CI
22

33
on:
44
push:
5-
branches: [ "mvp" ]
5+
branches: [ "mvp", "main" ]
66
pull_request:
7+
branches: [ "mvp", "main" ]
78
workflow_dispatch:
89

910
concurrency:
10-
group: ci-${{ github.ref }}
11+
group: ${{ github.workflow }}-${{ github.ref }}
1112
cancel-in-progress: true
1213

1314
env:
@@ -43,9 +44,10 @@ jobs:
4344
run: |
4445
if [ ! -d ".sqlx" ]; then
4546
echo "❌ ERROR: .sqlx directory missing. CI cannot compile in offline mode."
46-
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."
4748
exit 1
4849
fi
50+
echo "SQLx offline metadata found ✅"
4951
5052
- name: cargo fmt
5153
run: cargo fmt --all -- --check

0 commit comments

Comments
 (0)