Skip to content

Fix and document tests (#25) #53

Fix and document tests (#25)

Fix and document tests (#25) #53

Workflow file for this run

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