-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (60 loc) · 2.07 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: "Testing youtube-sub-extractor.el"
on: [push, pull_request]
jobs:
Testing:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
emacs_version:
- 27.1
- 28.2
- snapshot
steps:
- uses: actions/checkout@v3
- name: install Emacs
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- name: install buttercup
run: |-
set -e
script=$(cat <<- 'EOF'
(progn
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)
(unless (package-installed-p 'buttercup)
(package-refresh-contents)
(package-install 'buttercup)))
EOF
)
emacs --batch --eval "$script"
- name: check
run: |-
emacs --batch --funcall package-initialize --directory . --funcall buttercup-run-discover
MELPA-Checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install Emacs
run: |
sudo apt-get -y install emacs || (sudo apt-get update && sudo apt-get -y install emacs)
emacs --version
- name: Ensure pip exists
run: |
command -v pip || sudo apt-get -y install python3-pip
- name: Install Melpazoid
run: |
( cd ~/melpazoid && git checkout -- . && git pull --rebase ) || git clone https://github.com/riscy/melpazoid.git ~/melpazoid
pip install ~/melpazoid 2>/dev/null
- name: Check MELPA recipe with melpazoid
env:
RECIPE: (youtube-sub-extractor :repo "agzam/youtube-sub-extractor.el" :fetcher github)
EXIST_OK: false
run: echo $GITHUB_REF && env LOCAL_REPO="$GITHUB_WORKSPACE" make -C ~/melpazoid
- name: Install Eldev
run: curl -fsSL "https://raw.github.com/doublep/eldev/master/webinstall/github-eldev" | sh
- name: Eldev lint
run: |
eldev -p -dtT --color=always lint