Skip to content

Commit

Permalink
[ADD] CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyWeeUsr committed Dec 10, 2024
1 parent 0c0617d commit 7de3c27
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
86 changes: 86 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: CI

on:
push:
paths-ignore: ['**.md']
pull_request:
paths-ignore: ['**.md']

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.emacs_version == 'snapshot' }}

strategy:
matrix:
os:
- ubuntu-latest
emacs_version: [
'27.1', '27.2',
'28.1', '28.2',
'29.1', '29.2', '29.3',
'snapshot'
]

steps:
- name: Set up Emacs
uses: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}

- name: Install Eldev
uses: emacs-eldev/setup-eldev@v1

- name: Check out the source code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Test the project
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
eldev \
--debug \
--packaged \
--trace \
--time \
--color=always \
test
eldev \
--debug \
--trace \
--time \
--color=always \
test -u on,coveralls
- name: Ensure clean byte-compilation
run: |
eldev \
--debug \
--trace \
--time \
--color=always \
compile \
--warnings-as-errors
- name: Lint the project
run: |
eldev \
--debug \
--trace \
--time \
--color=always \
lint
- name: Run all doctor tests
run: |
eldev \
--verbose \
--debug \
--packaged \
--trace \
--time \
--color=always \
--backtrace-on-abort \
doctor --all-tests
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# emacs-syncthing
[![MELPA][melpa-badge]][melpa-package]
[![MELPA Stable][melpa-stable-badge]][melpa-stable-package]
[![CI][ci-badge]][ci-workflow]
[![Coverage Status][cover-badge]][cover-link]
[![Buy me a coffee][bmc-badge]][bmc-link]
[![Liberapay][lp-badge]][lp-link]
[![PayPal][ppl-badge]][ppl-link]
Expand Down Expand Up @@ -45,3 +47,7 @@ Check the manual for Emacs Customization: <kbd>C</kbd>-<kbd>h</kbd><kbd>i</kbd>
[demo-term]: https://raw.githubusercontent.com/KeyWeeUsr/emacs-syncthing/master/screenshot-term.png
[lp-badge]: https://img.shields.io/badge/-liberapay-grey?logo=liberapay
[lp-link]: https://liberapay.com/keyweeusr
[ci-badge]: https://github.com/KeyWeeUsr/emacs-syncthing/actions/workflows/test.yml/badge.svg
[ci-workflow]: https://github.com/KeyWeeUsr/emacs-syncthing/actions/workflows/test.yml
[cover-badge]: https://coveralls.io/repos/github/KeyWeeUsr/emacs-syncthing/badge.svg?branch=master
[cover-link]: https://coveralls.io/github/KeyWeeUsr/emacs-syncthing?branch=master

0 comments on commit 7de3c27

Please sign in to comment.