Skip to content

Commit 659a9eb

Browse files
committed
Adjust key order in the build workflow
Sort all pre-`steps` keys alphabetically descending. Sorting all keys alphabetically would be somewhat onerous because the `strategy` key would come after the `steps` key even though it's configuration information. We can at least sort everything but the `steps` key in alphabetically descending order and make the `steps` the last for a job.
1 parent 9be0934 commit 659a9eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,10 @@ jobs:
195195
uses: mxschmitt/action-tmate@v3
196196
if: env.RUN_TMATE
197197
build:
198-
runs-on: ${{ matrix.os }}
199198
needs:
200199
- lint
201200
- test
201+
runs-on: ${{ matrix.os }}
202202
strategy:
203203
fail-fast: false
204204
matrix:
@@ -248,9 +248,9 @@ jobs:
248248
uses: mxschmitt/action-tmate@v3
249249
if: env.RUN_TMATE
250250
test-build:
251-
runs-on: ${{ matrix.os }}
252251
needs:
253252
- build
253+
runs-on: ${{ matrix.os }}
254254
strategy:
255255
fail-fast: false
256256
matrix:

0 commit comments

Comments
 (0)