From ee7449aa52813331b140a7f9bfd0df578a3320f8 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Thu, 18 Apr 2024 00:59:59 +0200 Subject: [PATCH] Also run tests with locally-installed Emacs --- .github/actions/set-up/action.yaml | 8 ++++++-- check.ps1 | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/actions/set-up/action.yaml b/.github/actions/set-up/action.yaml index 73d769cfa..14c37ae79 100644 --- a/.github/actions/set-up/action.yaml +++ b/.github/actions/set-up/action.yaml @@ -82,6 +82,7 @@ runs: release: false install: > texinfo + mingw-w64-x86_64-emacs - name: Set up Ubuntu worker if: runner.os == 'Linux' shell: bash @@ -106,7 +107,7 @@ runs: if: runner.os == 'macOS' shell: bash run: | - brew update && brew install texinfo + brew update && brew install texinfo emacs # Detect Xcode command-line tools on macOS to work around # https://github.com/bazelbuild/bazel/issues/14970. cov="$(xcrun --find llvm-cov)" @@ -126,7 +127,10 @@ runs: Add-Content -Verbose -LiteralPath $Env:GITHUB_ENV - -Value 'BAZEL_SH=${{steps.msys2.outputs.msys2-location}}\usr\bin\bash.exe' + -Value ( + 'BAZEL_SH=${{steps.msys2.outputs.msys2-location}}\usr\bin\bash.exe', + 'EMACS=${{steps.msys2.outputs.msys2-location}}\mingw64\bin\emacs.exe' + ) - name: Override Bazel version if: inputs.bazel-version != 'default' shell: pwsh diff --git a/check.ps1 b/check.ps1 index 8a49e19d0..fd2d51015 100755 --- a/check.ps1 +++ b/check.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/env pwsh -# Copyright 2021-2025 Google LLC +# Copyright 2021-2026 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -57,6 +57,8 @@ foreach ($version in $versions) { Run-Tests "--extra_toolchains=//elisp:emacs_${version}_toolchain" } +Run-Tests '--extra_toolchains=//elisp:local_toolchain' + Run-Bazel 'mod' 'graph' > $null Join-Path -Path examples -ChildPath ext | Set-Location