Skip to content

refactoring: Split installing Emacs into a composite action. (#222) #70

refactoring: Split installing Emacs into a composite action. (#222)

refactoring: Split installing Emacs into a composite action. (#222) #70

Workflow file for this run

name: Emacs
on:
push:
branches:
- master
pull_request:
schedule:
- cron: 0 20 * * 6
workflow_dispatch:
env:
os_for_lint: ubuntu-22.04
cache_version: v1
cache_hash_seed_file_path: './.github/workflows/cache_seed_file_for_scoop.txt'
jobs:
TestRun_and_Lint:
strategy:
matrix:
os: [ubuntu-22.04, windows-latest, macOS-latest, macos-13]
runs-on: ${{ matrix.os }}
steps:
- name: Disable adding CR by Windows git
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4
- name: Install Emacs
uses: ./.github/actions/install_emacs
- name: Check version of Emacs
run: emacs --version
- name: Check load-path
shell: bash
run: ./.github/workflows/show_emacs_loadpath.sh
- name: Check system-name
shell: bash
run: ./.github/workflows/show_emacs_system_name.sh
- name: Test run
if: ${{ !contains(matrix.os, 'windows') }}
shell: bash
run: |
make -k -j testrun
- name: Install elisp-lint
if: contains(matrix.os, env.os_for_lint)
shell: bash
run: emacs -Q --batch -l ./.github/workflows/install-elisp-lint.el -f install-elisp-lint-batch
- name: elisp-lint
if: contains(matrix.os, env.os_for_lint)
shell: bash
run: make -k -j elisp-lint-all
- name: Unit tests for Emacs Lisp
if: ${{ !contains(matrix.os, 'windows') }}
run: make -k -j test