-
Notifications
You must be signed in to change notification settings - Fork 13
68 lines (59 loc) · 1.62 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
66
67
68
name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
emacs-version:
- 27.2
- 28.2
- 29.4
experimental: [false]
# TODO: enable once emacs snapshot version is fixed
# For some reason takes too long to run, see
# github.com/emacs-lsp/lsp-sonarlint/pull/25#issuecomment-2226929636
# include:
# - os: ubuntu-latest
# emacs-version: snapshot
# experimental: true
# - os: macos-latest
# emacs-version: snapshot
# experimental: true
# see https://github.com/emacs-eask/cli/issues/224
# - os: windows-latest
# emacs-version: snapshot
# experimental: true
exclude:
- os: macos-latest
emacs-version: 27.2
steps:
- uses: actions/checkout@v3
- name: Setup Java # SonarLint runs on Java.
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Setup NodeJS # for JS and TS analyzer
uses: actions/setup-node@v3
with:
node-version: 18
- uses: jcs090218/setup-emacs@master
with:
version: ${{ matrix.emacs-version }}
- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'
- name: Run tests
run:
make ci