Skip to content

Commit ec33a38

Browse files
Fail CI if the DB dump is dirty (#56)
* Bump CI dependencies * Add a CI check for dirty CI dump * Print dirty DB files for CI * Ignore compiled files * Test CI dirty DB check * Revert "Test CI dirty DB check" * Print the full dirty diff in CI check
1 parent ca9cc20 commit ec33a38

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ jobs:
66
runs-on: ubuntu-latest
77
timeout-minutes: 15
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@v6
1010
with:
1111
submodules: true
1212

1313
- name: Setup Go
14-
uses: actions/setup-go@v5
14+
uses: actions/setup-go@v6
1515

1616
- name: Install Dashing
1717
run: go install github.com/technosophos/dashing@latest
1818

1919
- name: Set up Python
20-
uses: actions/setup-python@v5
20+
uses: actions/setup-python@v6
2121
with:
2222
python-version: 3.13
2323

@@ -26,12 +26,19 @@ jobs:
2626
python -m pip install --upgrade pip
2727
pip install -r requirements.txt
2828
29-
- name: Build the docset
30-
run: |
31-
make
29+
- name: Build the docsets
30+
run: make
3231

3332
- name: Upload the docsets
34-
uses: actions/upload-artifact@v4
33+
uses: actions/upload-artifact@v7
3534
with:
3635
name: docset-bundle
3736
path: out/sublime-*.docset
37+
if-no-files-found: error
38+
39+
# Do this at the end to upload the zip even if we fail
40+
- name: Check for dirty DB dump
41+
run: |
42+
git status
43+
git diff
44+
git diff-files --quiet

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
# Compiled files
2+
*.py[cd]
3+
__pycache__/
4+
5+
# Build artifacts
16
out/

0 commit comments

Comments
 (0)