Improvements on JSX comment algorithm. #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |