|
2 | 2 | # Don't use `shell: bash` unless needed, as for macos-fresh that caused an infinite queue for the test step, and for linux bash may not exist yet |
3 | 3 | # |
4 | 4 | # NOTE: |
5 | | -# `uses: bevry/dorothy/.github/actions/dorothy-deps@master` is used instead of `uses: ./.github/actions/dorothy-deps` as the latter becomes the former, even if on a different branch, as such the eplicit variation is used to make it obvious one must manually specify the branch; using a dynamic variable for the branch does not work and results in a failure; awful design by github, but that is how it is |
| 5 | +# `uses: bevry/dorothy/.github/actions/dorothy-dependencies@master` is used instead of `uses: ./.github/actions/dorothy-deps` as the latter becomes the former, even if on a different branch, as such the eplicit variation is used to make it obvious one must manually specify the branch; using a dynamic variable for the branch does not work and results in a failure; awful design by github, but that is how it is |
6 | 6 | # |
7 | 7 | # NOTE: |
8 | 8 | # You can find details on the avalilable runners here: |
@@ -121,11 +121,13 @@ jobs: |
121 | 121 | runs-on: ubuntu-latest |
122 | 122 | steps: |
123 | 123 | - name: "Dorothy Install" |
124 | | - env: |
| 124 | + uses: bevry/dorothy/.github/actions/dorothy-remote-action@master |
| 125 | + with: |
125 | 126 | GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }} |
126 | | - run: | |
127 | | - # ensure dorothy is cloned, and run command |
128 | | - bash -c "$(curl -fsSL 'https://dorothy.bevry.me/install?slug=${{ needs.setup.outputs.SLUG }}&commit=${{ needs.setup.outputs.COMMIT }}')" -- --shells=bash,zsh,fish,nu,xonsh,elvish,dash,ksh --utils=carapace |
| 127 | + SLUG: ${{ needs.setup.outputs.SLUG }} |
| 128 | + COMMIT: ${{ needs.setup.outputs.COMMIT }} |
| 129 | + ACTION: install |
| 130 | + ARGUMENTS: -- --shells=bash,zsh,fish,nu,xonsh,elvish,dash,ksh --utils=carapace |
129 | 131 | - name: "Dorothy Login Shell: bash" |
130 | 132 | shell: bash -leo pipefail {0} |
131 | 133 | run: | |
@@ -186,24 +188,25 @@ jobs: |
186 | 188 | runs-on: ubuntu-latest |
187 | 189 | steps: |
188 | 190 | - name: "Dorothy Check" |
189 | | - env: |
| 191 | + uses: bevry/dorothy/.github/actions/dorothy-remote-action@master |
| 192 | + with: |
190 | 193 | GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }} |
191 | | - shell: bash -leo pipefail {0} |
192 | | - run: | |
193 | | - # ensure dorothy is cloned, and run command |
194 | | - bash -c "$(curl -fsSL 'https://dorothy.bevry.me/check?slug=${{ needs.setup.outputs.SLUG }}&commit=${{ needs.setup.outputs.COMMIT }}')" |
| 194 | + SLUG: ${{ needs.setup.outputs.SLUG }} |
| 195 | + COMMIT: ${{ needs.setup.outputs.COMMIT }} |
| 196 | + ACTION: check |
195 | 197 | format: |
196 | 198 | needs: setup |
197 | 199 | # if: false |
198 | 200 | if: github.event_name == 'push' |
199 | 201 | runs-on: ubuntu-latest |
200 | 202 | steps: |
201 | 203 | - name: "Dorothy Format" |
202 | | - env: |
| 204 | + uses: bevry/dorothy/.github/actions/dorothy-remote-action@master |
| 205 | + with: |
203 | 206 | GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }} |
204 | | - run: | |
205 | | - # ensure dorothy is cloned, and run command |
206 | | - bash -c "$(curl -fsSL 'https://dorothy.bevry.me/format?slug=${{ needs.setup.outputs.SLUG }}&commit=${{ needs.setup.outputs.COMMIT }}')" |
| 207 | + SLUG: ${{ needs.setup.outputs.SLUG }} |
| 208 | + COMMIT: ${{ needs.setup.outputs.COMMIT }} |
| 209 | + ACTION: format |
207 | 210 | - name: "Commit Changes" |
208 | 211 | env: |
209 | 212 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # writable |
@@ -238,24 +241,24 @@ jobs: |
238 | 241 | steps: |
239 | 242 | - name: "Uninstall Homebrew" |
240 | 243 | if: matrix.mode == 'fresh' |
241 | | - run: | |
242 | | - # run homebrew uninstaller |
243 | | - bash -c "$(curl -fsSL 'https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh')" |
| 244 | + run: bash -c "$(curl -fsSL 'https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh')" |
244 | 245 | - name: "Dorothy Upgrade Bash Version" |
245 | 246 | if: matrix.bash == 'bash' |
246 | | - uses: bevry/dorothy/.github/actions/dorothy-run@master |
| 247 | + uses: bevry/dorothy/.github/actions/dorothy-remote-action@master |
247 | 248 | with: |
248 | 249 | GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }} |
249 | 250 | SLUG: ${{ needs.setup.outputs.SLUG }} |
250 | 251 | COMMIT: ${{ needs.setup.outputs.COMMIT }} |
251 | | - COMMAND: "setup-util-bash" |
| 252 | + ACTION: run |
| 253 | + ARGUMENTS: -- setup-util-bash |
252 | 254 | - name: "Dorothy Test Bash Version: ${{ matrix.bash }}" |
253 | | - uses: bevry/dorothy/.github/actions/dorothy-run@master |
| 255 | + uses: bevry/dorothy/.github/actions/dorothy-remote-action@master |
254 | 256 | with: |
255 | 257 | GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }} |
256 | 258 | SLUG: ${{ needs.setup.outputs.SLUG }} |
257 | 259 | COMMIT: ${{ needs.setup.outputs.COMMIT }} |
258 | | - COMMAND: "dorothy test --bash=${{ matrix.bash }}" |
| 260 | + ACTION: test |
| 261 | + ARGUMENTS: -- --bash=${{ matrix.bash }} |
259 | 262 | windows-wsl-test: |
260 | 263 | needs: setup |
261 | 264 | # if: false |
@@ -317,12 +320,13 @@ jobs: |
317 | 320 | # continue-on-error: ${{ matrix.bash == '4.1' || matrix.bash == '4.2.53' || matrix.bash == '4.3.30' }} |
318 | 321 | steps: |
319 | 322 | - name: "Dorothy Test Bash Version: ${{ matrix.bash }}" |
320 | | - uses: bevry/dorothy/.github/actions/dorothy-run@master |
| 323 | + uses: bevry/dorothy/.github/actions/dorothy-remote-action@master |
321 | 324 | with: |
322 | 325 | GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }} |
323 | 326 | SLUG: ${{ needs.setup.outputs.SLUG }} |
324 | 327 | COMMIT: ${{ needs.setup.outputs.COMMIT }} |
325 | | - COMMAND: "dorothy test --bash=${{ matrix.bash }}" |
| 328 | + ACTION: test |
| 329 | + ARGUMENTS: -- --bash=${{ matrix.bash }} |
326 | 330 | containers-x86-test: |
327 | 331 | needs: setup |
328 | 332 | # if: false |
@@ -351,13 +355,14 @@ jobs: |
351 | 355 | image: ${{ matrix.container }} |
352 | 356 | steps: |
353 | 357 | - name: "Dorothy Dependencies" |
354 | | - uses: bevry/dorothy/.github/actions/dorothy-deps@master |
| 358 | + uses: bevry/dorothy/.github/actions/dorothy-dependencies@master |
355 | 359 | - name: "Dorothy Test" |
356 | | - uses: bevry/dorothy/.github/actions/dorothy-test@master |
| 360 | + uses: bevry/dorothy/.github/actions/dorothy-remote-action@master |
357 | 361 | with: |
358 | 362 | GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }} |
359 | 363 | SLUG: ${{ needs.setup.outputs.SLUG }} |
360 | 364 | COMMIT: ${{ needs.setup.outputs.COMMIT }} |
| 365 | + ACTION: test |
361 | 366 | containers-arm-test: |
362 | 367 | needs: setup |
363 | 368 | # if: false |
@@ -386,10 +391,11 @@ jobs: |
386 | 391 | image: ${{ matrix.container }} |
387 | 392 | steps: |
388 | 393 | - name: "Dorothy Dependencies" |
389 | | - uses: bevry/dorothy/.github/actions/dorothy-deps@master |
| 394 | + uses: bevry/dorothy/.github/actions/dorothy-dependencies@master |
390 | 395 | - name: "Dorothy Test" |
391 | | - uses: bevry/dorothy/.github/actions/dorothy-test@master |
| 396 | + uses: bevry/dorothy/.github/actions/dorothy-remote-action@master |
392 | 397 | with: |
393 | 398 | GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }} |
394 | 399 | SLUG: ${{ needs.setup.outputs.SLUG }} |
395 | 400 | COMMIT: ${{ needs.setup.outputs.COMMIT }} |
| 401 | + ACTION: test |
0 commit comments