Skip to content

Merge pull request #6 from ramblehead/code-folding #159

Merge pull request #6 from ramblehead/code-folding

Merge pull request #6 from ramblehead/code-folding #159

Workflow file for this run

name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: ${{matrix.emacs_version == 'snapshot'}}
strategy:
matrix:
emacs_version: ['29.1', '29.2', 'snapshot']
steps:
- name: Install Emacs
uses: purcell/setup-emacs@master
with:
version: ${{matrix.emacs_version}}
- name: Check out the source code
uses: actions/checkout@v4
- name: Install treesit Javascript language
run: emacs --batch -l jtsx.el --eval "(jtsx-install-treesit-language 'javascript)"
- name: Install treesit TSX language
run: emacs --batch -l jtsx.el --eval "(jtsx-install-treesit-language 'tsx)"
- name: Install treesit Typescript language
run: emacs --batch -l jtsx.el --eval "(jtsx-install-treesit-language 'typescript)"
- name: Run package lint check
run: |
emacs --batch \
--eval "(progn \
(require 'package) \
(push '(\"melpa\" . \"https://melpa.org/packages/\") package-archives) \
(package-initialize) \
(unless package-archive-contents \
(package-refresh-contents)) \
(unless (package-installed-p 'package-lint) \
(package-install 'package-lint)))" \
--eval "(require 'package-lint)" \
-f package-lint-batch-and-exit jtsx.el
- name: Test the project
run: emacs --batch -l ert -l jtsx.el -l tests/jtsx-tests.el -f ert-run-tests-batch-and-exit