aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRadon Rosborough <radon@intuitiveexplanations.com>2023-10-06 22:01:38 -0700
committerGitHub <noreply@github.com>2023-10-06 22:01:38 -0700
commit791346cd3a331b7a6b949c69e7680f8dc389d3a3 (patch)
treea4bcc4f8423f4e9e67f41643bb4128630aa30ad1 /.github
parent35f72f6fbe42115202a43be61a07805b3854b0d2 (diff)
Fix brittany formatter & misc improvements (#222)
* Fix brittany installation, needed the `--reorder-goals` argument to be added so that a version that was not the latest version could be installed so that it was compatible with the base lib version shipped with Ubuntu 20.04. We'll upgrade to 22.04 eventually (before it falls out of LTS). Ref: https://github.com/radian-software/apheleia/pull/221 * Add a `make fmt-build-common` target which allows tagging a docker image containing just the base software and not any formatters, to make it easy to debug formatter installation manually. * Update `apheleia-ft` to also run formatter tests when any files affecting a formatter are changed, which includes the installation script, the sample input/output, and also any scripts (e.g. `apheleia-phpcs`) that it uses. We don't have any logic that will run all formatter tests at once, because that is unwieldy. That can be done manually if making a big change. * Update to actions/checkout@v4 from v2 because the older one was listed as deprecated. * Print full stacktraces when `apheleia-ft` fails with an Elisp error.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/formatters.yml8
-rw-r--r--.github/workflows/lint.yml2
2 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/formatters.yml b/.github/workflows/formatters.yml
index b114eea..18f0383 100644
--- a/.github/workflows/formatters.yml
+++ b/.github/workflows/formatters.yml
@@ -5,12 +5,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout pull request
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- - name: Fetch master
- run: |
- git fetch
+ # No shallow clone, we want to be able to compare PR branch
+ # to main.
+ fetch-depth: 0
- name: Test changed formatters
run: |
set -euo pipefail
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 923f719..dff8cf0 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -12,7 +12,7 @@ jobs:
emacs_version: [26, 27, 28, "master"]
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v4
- name: Run linters
env:
VERSION: ${{ matrix.emacs_version }}