Skip to content

Commit

Permalink
[fu] ci - flycheck - try home checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
pkryger committed Nov 20, 2024
1 parent 28e70bc commit 3690f1f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .ci/batch-byte-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

exit_code=0
Expand Down
2 changes: 1 addition & 1 deletion .ci/batch-checkdoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

for pattern in "modules/*.el" "init.el" "themes/*.el" ".ci/*.el"; do
Expand Down
2 changes: 1 addition & 1 deletion .ci/batch-flycheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

for pattern in "modules/*.el" "init.el" "themes/*.el" ".ci/*.el"; do
Expand Down
2 changes: 1 addition & 1 deletion .ci/first-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

# Redefine ask-user-about-lock as the melpa seems to stumble on it
Expand Down
2 changes: 1 addition & 1 deletion .ci/unit-test-cl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -x
set -e
EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

${EMACS} -Q --batch \
Expand Down
2 changes: 1 addition & 1 deletion .ci/unit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -x
set -e

EMACS_DIR="$(cd "${GITHUB_WORKSPACE:-${HOME}}/${1:-.emacs.d}" && pwd -P)"
EMACS_DIR="$(cd "${HOME}/${1:-.emacs.d}" && pwd -P)"
EMACS=${EMACS:=emacs}

# Run all tests form *.t.el
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ jobs:

- uses: actions/checkout@v4
with:
path: '.emacs.d'
path: "${HOME}/.emacs.d"

# - name: Link .emacs.d to $HOME # batch-flycheck expects Exordium
# # to be installed in ${HOME}/.emacs.d
# if: contains(fromJSON('["29.4", "snapshot"]'), matrix.emacs_version)
# run: ln -s "${GITHUB_WORKSPACE}/.emacs.d" "${HOME}/.emacs.d"

- name: Install bash # Needed for mapfile on macOS,
# Installing early so all scripts run in
Expand All @@ -47,10 +52,10 @@ jobs:
run: brew install bash

- name: First start # So most modules are pulled in from melpa and gnu
run: .emacs.d/.ci/first-start.sh
run: '"${HOME}/.emacs.d/.ci/first-start.sh"'

- name: Unit tests
run: .emacs.d/.ci/unit-tests.sh
run: '"${HOME}/.emacs.d/.ci/unit-tests.sh"'

- name: Publish test report
uses: mikepenz/action-junit-report@v5
Expand All @@ -59,25 +64,20 @@ jobs:
report_paths: '.emacs.d/modules/*.t.xml'

- name: Verify no obsolete cl- functions
run: .emacs.d/.ci/unit-test-cl.sh
run: '"${HOME}/.emacs.d/.ci/unit-test-cl.sh"'

- name: 'Lint: checkdoc'
if: contains(fromJSON('["29.4", "snapshot"]'), matrix.emacs_version)
run: .emacs.d/.ci/batch-checkdoc.sh
run: '"${HOME}/.emacs.d/.ci/batch-checkdoc.sh"'

- name: 'Lint: compilation' # Close to the end, to let other builds escape errors
# caused by compilation shenanigans
if: contains(fromJSON('["29.4", "snapshot"]'), matrix.emacs_version)
run: .emacs.d/.ci/batch-byte-compile.sh

- name: Link .emacs.d to $HOME # batch-flycheck expects Exordium
# to be installed in ${HOME}/.emacs.d
if: contains(fromJSON('["29.4", "snapshot"]'), matrix.emacs_version)
run: ln -s "${GITHUB_WORKSPACE}/.emacs.d" "${HOME}/.emacs.d"
run: '"${HOME}/.emacs.d/.ci/batch-byte-compile.sh"'

- name: 'Lint: flycheck' # After compilation that should install all packages
if: contains(fromJSON('["29.4", "snapshot"]'), matrix.emacs_version)
run: .emacs.d/.ci/batch-flycheck.sh
run: '"${HOME}/.emacs.d/.ci/batch-flycheck.sh"'

pkryger-taps:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 3690f1f

Please sign in to comment.