Skip to content

Add CI workflow #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copied from https://github.com/purcell/emacs.d/blob/master/.github/workflows/test.yml
name: CI

on:
pull_request:
push:
paths-ignore:
- '**.org'

jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
emacs_version:
- 29.3
experimental: [false]
include:
- emacs_version: snapshot
experimental: true
steps:
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}

- uses: actions/checkout@v4
- name: Check startup
run: |
mkdir ~/test-unicode
pushd ~/test-unicode;
touch test.mp3 "avec espace.mp3" accent-$(echo -e "\0303\0251.mp3");
popd
${EMACS:=emacs} -nw --batch \
--eval '(progn
(let ((debug-on-error t))
(prefer-coding-system 'utf-8-unix)
;; todo: try different find-ls-option here
(use-package ready-player
:load-path "."
:custom
(ready-player-my-media-collection-location "~/test-unicode/")
:config
(ready-player-mode +1))
;; perhaps there is a better function to test?
(ready-player)
))'