This repository has been archived by the owner on Apr 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (59 loc) · 1.69 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: 'Demo'
on:
pull_request:
paths:
- .github/workflows/test.yml
push:
branches:
- master
paths:
- .github/workflows/test.yml
jobs:
demo:
runs-on: ubuntu-latest
strategy:
matrix:
nixpkgs_channel:
- nixos-20.03-small
- nixos-20.09-small
- nixos-unstable-small
steps:
- uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:${{ matrix.nixpkgs_channel }}
- name: Set up binary cache
run: nix-env -iA cachix -f https://cachix.org/api/v1/install && cachix use emacs-ci
# Install and configure elinter
- name: Install elinter
run: nix-env -if https://github.com/akirak/elinter/archive/v4.tar.gz
- name: Configure elinter
run: |
echo "ELINTER_LINTERS=checkdoc check-declare package-lint melpazoid" >> $GITHUB_ENV
echo "EMACS_VERSION=27.1" >> $GITHUB_ENV
# Demo
- name: Check out lsp-dart
uses: actions/[email protected]
with:
repository: akirak/lsp-dart
ref: elinter
path: lsp-dart
- run: elinter --ert-runner
working-directory: ./lsp-dart
env:
ELINTER_ALLOW_WARNINGS: melpazoid
- name: Check out reformatter.el
uses: actions/[email protected]
with:
repository: akirak/reformatter.el
ref: elinter
path: reformatter.el
- run: nix-shell -p shfmt --run 'elinter --ert -- reformatter-tests.el'
working-directory: ./reformatter.el
- name: Check out dhall-mode
uses: actions/[email protected]
with:
repository: akirak/dhall-mode
ref: elinter
path: dhall-mode
- run: elinter
working-directory: ./dhall-mode