Skip to content
Myr

tests.yml

This file

Path

.github/workflows/tests.yml

93 lines · 2.5 KiB · YAML

Last changed by

[actions] retry apt package installs through Ubuntu mirror outagesJordan Harbandbefore adoption50e73c4

History of this file

Take it

The walk stopped after 200 commits: lines older than 5c12680 point at it.

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 1–10why, one step back
1name: urchin tests
23on: [push, pull_request]45permissions:6 contents: read78jobs:9 tests:10 permissions:

[actions] update workflowsJordan Harbandbefore adoption419ff4e

line 11why, one step back
11 contents: read # for actions/checkout@v6

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 12–14why, one step back
12
13 name: "tests"14 runs-on: ubuntu-latest

[Tests] add a timeoutJordan Harbandbefore adoption9738405

line 15why, one step back
15 timeout-minutes: 30

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 16–55why, one step back
16 defaults:
17 run:18 shell: 'script -q -e -c "${{ matrix.shell }} {0}"'1920 strategy:21 fail-fast: false22 matrix:23 exclude:24 - shell: sh25 suite: install_script26 - shell: dash27 suite: install_script28 - shell: zsh29 suite: install_script30 - shell: ksh31 suite: install_script32 suite:33 - install_script34 - sourcing35 - slow36 - installation_iojs37 shell:38 - sh39 - bash40 - dash41 - zsh42 # - ksh4344 steps:45 - name: Harden Runner46 uses: step-security/harden-runner@v247 with:48 allowed-endpoints:49 github.com:44350 registry.npmjs.org:44351 raw.githubusercontent.com:44352 nodejs.org:44353 iojs.org:44354 azure.archive.ubuntu.com:8055 packages.microsoft.com:443

[actions] update outdated GitHub Actions versionsPadraic Slatterybefore adoption34d6d5d

line 56why, one step back
56 - uses: actions/checkout@v6

[actions] retry apt package installs through Ubuntu mirror outagesJordan Harbandbefore adoption50e73c4

line 57why, one step back
57 - run: sh .github/scripts/apt-install.sh ${{ matrix.shell }}

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 58–71why, one step back
58 if: matrix.shell == 'zsh' || matrix.shell == 'ksh'
59 # zsh (https://github.com/actions/runner-images/issues/264) and ksh are not in the ubuntu image60 shell: bash61 - run: sudo ${{ matrix.shell }} --version 2> /dev/null || dpkg -s ${{ matrix.shell }} 2> /dev/null || which ${{ matrix.shell }}62 - run: curl --version63 - run: wget --version64 - uses: ljharb/actions/node/install@main65 name: 'npm install && version checks'66 with:67 node-version: 'lts/*'68 skip-ls-check: true69 - run: npm ls urchin70 - run: npx which urchin71 - run: env

[Tests] add retry logicJordan Harbandbefore adoption6d761ba

lines 72–84why, one step back
72 - name: Run tests
73 shell: bash74 run: |75 for attempt in 1 2 3; do76 timeout 600 make TERM=xterm-256color TEST_SUITE="${{ matrix.suite }}" SHELL="${{ matrix.shell }}" URCHIN="$(npx which urchin)" test-${{ matrix.shell }} && exit 077 EXIT_CODE=$?78 if [ $EXIT_CODE -ne 124 ]; then79 exit $EXIT_CODE80 fi81 echo "Attempt ${attempt} timed out; retrying..."82 done83 echo "All 3 attempts timed out."84 exit 1

[Dev Deps] update `markdown-link-check`Jordan Harbandbefore adoption5c12680

lines 85–93why, one step back
85
86 nvm:87 permissions:88 contents: none89 name: 'all test suites, all shells'90 needs: [tests]91 runs-on: ubuntu-latest92 steps:93 - run: true