-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from purcell/add-ci
Add simple CI
- Loading branch information
Showing
4 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
commit-message: | ||
prefix: "chore" | ||
include: "scope" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: purcell/setup-emacs@master | ||
with: | ||
version: 29.1 | ||
- uses: actions/checkout@v4 | ||
- name: Run tests | ||
run: make package-lint | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
emacs_version: | ||
- 24.3 | ||
- 24.5 | ||
- 25.1 | ||
- 25.3 | ||
- 26.1 | ||
- 26.3 | ||
- 27.1 | ||
- 27.2 | ||
- 28.1 | ||
- 28.2 | ||
- 29.1 | ||
- snapshot | ||
steps: | ||
- uses: cachix/install-nix-action@V27 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: purcell/setup-emacs@master | ||
with: | ||
version: ${{ matrix.emacs_version }} | ||
- uses: actions/checkout@v4 | ||
- name: Run tests | ||
run: make compile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
EMACS ?= emacs | ||
|
||
# A space-separated list of required package names | ||
DEPS = | ||
|
||
INIT_PACKAGES="(progn \ | ||
(require 'package) \ | ||
(push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \ | ||
(package-initialize) \ | ||
(dolist (pkg '(PACKAGES)) \ | ||
(unless (package-installed-p pkg) \ | ||
(unless (assoc pkg package-archive-contents) \ | ||
(package-refresh-contents)) \ | ||
(package-install pkg))) \ | ||
)" | ||
|
||
all: compile package-lint test clean-elc | ||
|
||
package-lint: | ||
${EMACS} -Q --eval $(subst PACKAGES,package-lint,${INIT_PACKAGES}) -batch -f package-lint-batch-and-exit windswap.el | ||
|
||
compile: clean-elc | ||
${EMACS} -Q --eval $(subst PACKAGES,${DEPS},${INIT_PACKAGES}) -L . -batch -f batch-byte-compile *.el | ||
|
||
clean-elc: | ||
rm -f f.elc | ||
|
||
.PHONY: all compile clean-elc package-lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters