Skip to content

Commit

Permalink
Initial erc tests (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
svaante authored Dec 28, 2023
1 parent 571df6f commit 4de787c
Show file tree
Hide file tree
Showing 4 changed files with 706 additions and 1 deletion.
57 changes: 57 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: test

on:
push:
branches:
- master
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install emacs
uses: purcell/setup-emacs@master
with:
version: 29.1

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
architecture: "x64"

- name: Install debugpy
run: |
pip3 install debugpy
- name: Download codelldb
run: |
sudo apt install wget
mkdir -p ~/.emacs.d/debug-adapters/codelldb/
wget https://github.com/vadimcn/codelldb/releases/download/v1.10.0/codelldb-x86_64-linux.vsix
unzip codelldb-x86_64-linux.vsix -d ~/.emacs.d/debug-adapters/codelldb/
- name: Download js-debug
run: |
sudo apt install wget
mkdir -p ~/.emacs.d/debug-adapters/
wget https://github.com/microsoft/vscode-js-debug/releases/download/v1.84.0/js-debug-dap-v1.84.0.tar.gz
tar -xvzf js-debug-dap-v1.84.0.tar.gz -C ~/.emacs.d/debug-adapters
- name: Install ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'

- name: Install rdbg
run: gem install debug

- name: Build
run: make all

- name: Test
run: make check
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export EMACS ?= $(shell which emacs)

ELFILES = dape.el dape-tests.el
ELCFILES = $(addsuffix .elc, $(basename $(ELFILES)))

all: $(ELCFILES)

%.elc: %.el
@echo Compiling $<
@${EMACS} -batch -q -no-site-file -L . -f batch-byte-compile $<

check: $(ELCFILES)
@${EMACS} -batch -l ert $(foreach file, $^, -l $(file)) -f ert-run-tests-batch-and-exit

clean:
@rm -f *.elc
Loading

0 comments on commit 4de787c

Please sign in to comment.