Skip to content

Commit

Permalink
Add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed May 23, 2022
1 parent 864c113 commit e10212e
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
emacs-version:
- 26.3
- 27.2
- 28.1
- snapshot

steps:
- uses: actions/checkout@v2

- uses: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}

- uses: actions/setup-node@v2
with:
node-version: '14'

- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'

- name: Run tests
run:
make ci
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ignore these directories
/.git
/recipes

# ignore generated files
*.elc

# eask packages
.eask/
dist/

# packaging
*-autoloads.el
*-pkg.el
9 changes: 9 additions & 0 deletions Eask
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(package "javap-mode"
"9"
"Javap major mode")

(package-file "javap-mode.el")

(depends-on "emacs" "26.1")

(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
SHELL := /usr/bin/env bash

EMACS ?= emacs
EASK ?= eask

.PHONY: clean checkdoc lint package install compile test

ci: clean package install compile

package:
@echo "Packaging..."
$(EASK) package

install:
@echo "Installing..."
$(EASK) install

compile:
@echo "Compiling..."
$(EASK) compile

test:
@echo "Testing..."
$(EASK) ert ./test/*.el

checkdoc:
@echo "Run checkdoc..."
$(EASK) checkdoc

lint:
@echo "Run package-lint..."
$(EASK) lint

clean:
$(EASK) clean-all

0 comments on commit e10212e

Please sign in to comment.