Skip to content

Commit 77e3f7d

Browse files
committed
refactor: remove config-file settings
As of doomemacs/doomemacs@9b8ed397e8e7, bin/doom implicitly loads a project's .doomrc, where our CI settings will live from now on. Ref: doomemacs/doomemacs@9b8ed397e8e7
1 parent 673208d commit 77e3f7d

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

.github/workflows/lint-commits.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
name: Lint commits
2-
on:
3-
workflow_call:
4-
inputs:
5-
config-file:
6-
description: "TODO"
7-
type: string
8-
default: '.github/ci.el'
9-
2+
on: [workflow_call]
103
jobs:
114
lint-commits:
125
timeout-minutes: 10
@@ -18,12 +11,11 @@ jobs:
1811
- name: Set up Doom Emacs CI
1912
uses: doomemacs/ci@legacy
2013

21-
- name: Checkout current project
22-
uses: actions/[email protected]
14+
- uses: actions/[email protected]
2315
with.fetch-depth: 0
2416

2517
- name: Run commit linter
26-
env.ELFILE: ${{ inputs.config-file }}
27-
run: |
28-
[[ -f "$ELFILE" ]] || ELFILE=
29-
doom ${ELFILE:+-l "$ELFILE"} ci lint-commits ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
18+
env:
19+
FROM: ${{ github.event.pull_request.base.sha }}
20+
TO: ${{ github.event.pull_request.head.sha }}
21+
run: doom ci lint-commits $FROM $TO

.github/workflows/run-tests.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ on:
66
description: "TODO"
77
type: string
88
default: "test"
9-
config-file:
10-
description: "TODO"
11-
type: string
12-
default: '.github/ci.el'
139

1410
jobs:
1511
run-tests:
@@ -22,4 +18,4 @@ jobs:
2218
- uses: actions/[email protected]
2319
- uses: doomemacs/ci@legacy
2420
with.emacs-version: ${{ matrix.emacs-version }}
25-
- run: doom -f ${{ inputs.config-file }} ci run-tests ${{ inputs.testdir }}
21+
- run: doom ci run-tests ${{ inputs.testdir }}

0 commit comments

Comments
 (0)