Skip to content

Commit cd460f4

Browse files
Add CI workflow
This change enables testing loading media collections.
1 parent 62a44bd commit cd460f4

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/test.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Copied from https://github.com/purcell/emacs.d/blob/master/.github/workflows/test.yml
2+
name: CI
3+
4+
on:
5+
pull_request:
6+
push:
7+
paths-ignore:
8+
- '**.org'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
continue-on-error: ${{ matrix.experimental }}
14+
strategy:
15+
matrix:
16+
emacs_version:
17+
- 29.3
18+
experimental: [false]
19+
include:
20+
- emacs_version: snapshot
21+
experimental: true
22+
steps:
23+
- uses: purcell/setup-emacs@master
24+
with:
25+
version: ${{ matrix.emacs_version }}
26+
27+
- uses: actions/checkout@v4
28+
- name: Check startup
29+
run: |
30+
mkdir ~/test-unicode
31+
pushd ~/test-unicode;
32+
touch test.mp3 "avec espace.mp3" accent-$(echo -e "\0303\0251.mp3");
33+
popd
34+
${EMACS:=emacs} -nw --batch \
35+
--eval '(progn
36+
(let ((debug-on-error t))
37+
(prefer-coding-system 'utf-8-unix)
38+
;; todo: try different find-ls-option here
39+
(use-package ready-player
40+
:load-path "."
41+
:custom
42+
(ready-player-my-media-collection-location "~/test-unicode/")
43+
:config
44+
(ready-player-mode +1))
45+
;; perhaps there is a better function to test?
46+
(ready-player)
47+
))'

0 commit comments

Comments
 (0)