Make indentation configurable and default to d2 fmt indent #41
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: Elisp Check | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
emacs-version: | |
- 26.3 | |
- 27.2 | |
- 28.2 | |
- snapshot | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Emacs | |
uses: jcs090218/setup-emacs@master | |
with: | |
version: ${{ matrix.emacs-version }} | |
# Remove expired DST Root CA X3 certificate. Workaround for | |
# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=51038 bug on Emacs 27.2. | |
# https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-1126671598 | |
- name: Workaround for Emacs 27.x and below's Windows build from GNU FTP | |
if: ${{ runner.os == 'Windows' && (matrix.emacs-version == '26.3' || matrix.emacs-version == '27.2') }} | |
run: | | |
gci cert:\LocalMachine\Root\DAC9024F54D8F6DF94935FB1732638CA6AD77C13 | |
gci cert:\LocalMachine\Root\DAC9024F54D8F6DF94935FB1732638CA6AD77C13 | Remove-Item | |
- name: Emacs Lisp check | |
uses: leotaku/[email protected] | |
with: | |
file: d2-mode.el | |
warnings_as_errors: true |