Skip to content

Commit 270a510

Browse files
committed
test: ensure old byte files are cleaned up
1 parent ba88909 commit 270a510

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ jobs:
3131
with:
3232
version: ${{ matrix.emacs_version }}
3333

34-
- name: Compile
35-
run: |
36-
./scripts/compile.sh
37-
3834
- name: Lint
3935
run: |
4036
./scripts/lint.sh
@@ -43,6 +39,10 @@ jobs:
4339
run: |
4440
./scripts/test.sh
4541
42+
- name: Compile
43+
run: |
44+
./scripts/compile.sh
45+
4646
- name: Check documentation
4747
run: |
4848
emacs -Q --batch \

scripts/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
99
echo "Project root: $PROJECT_ROOT"
1010
echo ""
1111

12+
# Clean up old byte-compiled files
13+
if compgen -G "$PROJECT_ROOT/*.elc" >/dev/null; then
14+
echo "Cleaning up old byte-compiled files..."
15+
rm -f "$PROJECT_ROOT"/*.elc
16+
fi
17+
1218
echo "Running ERT tests..."
1319
(cd "$PROJECT_ROOT" && emacs -Q --batch \
1420
--eval "(add-to-list 'load-path \".\")" \

0 commit comments

Comments
 (0)