Skip to content

Commit

Permalink
add CI workflows just so they're there
Browse files Browse the repository at this point in the history
  • Loading branch information
countvajhula committed May 25, 2021
1 parent 439e68a commit b66a42a
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 6 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/melpazoid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# melpazoid <https://github.com/riscy/melpazoid> build checks.

# If your package is on GitHub, enable melpazoid's checks by copying this file
# to .github/workflows/melpazoid.yml and modifying RECIPE and EXIST_OK below.

name: melpazoid
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
uses: actions/setup-python@v1
with: { python-version: 3.6 }
- name: Install
run: |
python -m pip install --upgrade pip
sudo apt-get install emacs && emacs --version
git clone https://github.com/riscy/melpazoid.git ~/melpazoid
pip install ~/melpazoid
- name: Run
env:
LOCAL_REPO: ${{ github.workspace }}
# RECIPE is your recipe as written for MELPA:
RECIPE: (rigpa :repo "countvajhula/rigpa" :fetcher github)
# set this to false (or remove it) if the package isn't on MELPA:
EXIST_OK: false
run: echo $GITHUB_REF && make -C ~/melpazoid
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: build

on: [push, pull_request]

defaults:
run:
shell: bash

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
emacs_version:
- '26.1'
- '27.1'
- 'snapshot'
name: Test on Emacs ${{ matrix.emacs_version }}
steps:
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.6'
architecture: 'x64'
- name: Install Emacs
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- name: Install Cask
uses: conao3/setup-cask@master
with:
version: 'snapshot'
- name: Checkout
uses: actions/checkout@master
- name: Install Package and its Dependencies
run: make install
- name: Lint
run: make lint
- name: Check Docstrings
run: make checkdoc
- name: Byte Compile
run: make build
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ CASK ?= cask
INIT_PACKAGE_EL="(progn \
(require 'package) \
(push '(\"melpa\" . \"http://melpa.org/packages/\") package-archives) \
(setq my-package-dir \"$(PWD)\") \
(add-to-list 'load-path my-package-dir) \
(let ((default-directory my-package-dir)) \
(normal-top-level-add-subdirs-to-load-path)) \
(package-initialize))"
(package-initialize) \
(unless package-archive-contents \
(package-refresh-contents)))"

PROJECT_FILES=`${CASK} files`

Expand Down Expand Up @@ -53,7 +51,7 @@ lint-noiseless:
checkdoc:
${CASK} exec $(EMACS) -Q --batch \
--eval $(INIT_PACKAGE_EL) \
-l "build-utils.el" \
-l "dev/build-utils.el" \
--eval '(flycheck/batch-checkdoc ".")'

build :
Expand Down

0 comments on commit b66a42a

Please sign in to comment.