Skip to content

Commit d9e1f7f

Browse files
authored
Add CI
1 parent 4badcf6 commit d9e1f7f

File tree

5 files changed

+95
-2
lines changed

5 files changed

+95
-2
lines changed

.github/workflows/test.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
test:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os: [ubuntu-latest, macos-latest, windows-latest]
20+
emacs-version:
21+
- 26.3
22+
- 27.2
23+
- 28.1
24+
- snapshot
25+
26+
steps:
27+
- uses: actions/checkout@v2
28+
29+
- uses: jcs090218/setup-emacs@master
30+
with:
31+
version: ${{ matrix.emacs-version }}
32+
33+
- uses: actions/setup-node@v2
34+
with:
35+
node-version: '14'
36+
37+
- uses: emacs-eask/setup-eask@master
38+
with:
39+
version: 'snapshot'
40+
41+
- name: Run tests
42+
run:
43+
make ci

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
*.elc
33

44
# Packaging
5-
.cask
5+
.eask
6+
dist/
67

78
# Backup files
89
*~

Eask

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(package "gdscript-mode"
2+
"0.1.0"
3+
"Major mode for Godot's GDScript language")
4+
5+
(package-file "gdscript-mode.el")
6+
7+
(files "*.el")
8+
9+
(source "gnu")
10+
11+
(depends-on "emacs" "26.3")
12+
13+
(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432

Makefile

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
SHELL := /usr/bin/env bash
2+
3+
EMACS ?= emacs
4+
EASK ?= eask
5+
6+
.PHONY: clean checkdoc lint package install compile test
7+
8+
# TODO: add `lint` if we can?
9+
ci: clean package install compile checkdoc
10+
11+
package:
12+
@echo "Packaging..."
13+
$(EASK) package
14+
15+
install:
16+
@echo "Installing..."
17+
$(EASK) install
18+
19+
compile:
20+
@echo "Compiling..."
21+
$(EASK) compile
22+
23+
test:
24+
@echo "Testing..."
25+
$(EASK) ert ./test/*.el
26+
27+
checkdoc:
28+
@echo "Run checkdoc..."
29+
$(EASK) checkdoc
30+
31+
lint:
32+
@echo "Run package-lint..."
33+
$(EASK) lint
34+
35+
clean:
36+
$(EASK) clean-all

gdscript-docs.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
(require 'eww)
3535
(require 'gdscript-customization)
3636

37-
(defun gdscript-docs-open (url &optional)
37+
(defun gdscript-docs-open (url &args _)
3838
"when `gdscript-docs-use-eww' is true use `eww' else use `browse-url'"
3939
(if gdscript-docs-use-eww
4040
(if (file-exists-p url) (eww-open-file url) (eww-browse-url url t))

0 commit comments

Comments
 (0)