From c3627a2ddff1a562db885039a73cd899cd1d1980 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 14 Aug 2024 19:49:47 +1200 Subject: [PATCH] DO NOT MERGE --- .github/workflows/latest-npm.yml | 81 --------- .github/workflows/lint.yml | 72 -------- .github/workflows/rebase.yml | 26 --- .github/workflows/release.yml | 36 ---- .github/workflows/require-allow-edits.yml | 24 --- .github/workflows/shellcheck.yml | 56 ------- .github/workflows/tests.yml | 61 ------- .github/workflows/toc.yml | 40 ----- .github/workflows/windows-npm.yml | 193 ---------------------- 9 files changed, 589 deletions(-) delete mode 100644 .github/workflows/latest-npm.yml delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/rebase.yml delete mode 100644 .github/workflows/release.yml delete mode 100644 .github/workflows/require-allow-edits.yml delete mode 100644 .github/workflows/shellcheck.yml delete mode 100644 .github/workflows/tests.yml delete mode 100644 .github/workflows/toc.yml delete mode 100644 .github/workflows/windows-npm.yml diff --git a/.github/workflows/latest-npm.yml b/.github/workflows/latest-npm.yml deleted file mode 100644 index b368080..0000000 --- a/.github/workflows/latest-npm.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: 'Tests: `nvm install-latest-npm`' - -on: [pull_request, push] - -permissions: - contents: read - -jobs: - matrix: - runs-on: ubuntu-latest - outputs: - latest: ${{ steps.set-matrix.outputs.requireds }} - steps: - - name: Harden Runner - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - iojs.org:443 - nodejs.org:443 - raw.githubusercontent.com:443 - - uses: ljharb/actions/node/matrix@main - id: set-matrix - with: - versionsAsRoot: true - type: majors - preset: '>=1' - - nodes: - needs: [matrix] - permissions: - contents: read - name: 'nvm install-latest-npm' - runs-on: ubuntu-latest - - strategy: - fail-fast: false - matrix: - node-version: ${{ fromJson(needs.matrix.outputs.latest) }} - include: - - node-version: "9.2" - - node-version: "9.1" - - node-version: "9.0" - - node-version: "6.1" - - node-version: "5.9" - - node-version: "4.6" - - node-version: "4.5" - - node-version: "4.4" - - node-version: "0.12" - - node-version: "0.10" - - steps: - - name: Harden Runner - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - github.com:443 - raw.githubusercontent.com:443 - iojs.org:443 - nodejs.org:443 - registry.npmjs.org:443 - - uses: actions/checkout@v4 - - uses: ljharb/actions/node/install@main - name: 'install node' - with: - node-version: ${{ matrix.node-version }} - skip-ls-check: true - skip-install: true - skip-latest-npm: true - - run: npm --version - - run: '. ./nvm.sh ; nvm install-latest-npm' - name: 'nvm install-latest-npm' - - run: npm --version - - node: - permissions: - contents: none - name: 'nvm install-latest-npm' - needs: [nodes] - runs-on: ubuntu-latest - steps: - - run: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 3e915ba..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: 'Tests: linting' - -on: [pull_request, push] - -permissions: - contents: read - -jobs: - eclint: - runs-on: ubuntu-latest - steps: - - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - github.com:443 - raw.githubusercontent.com:443 - nodejs.org:443 - registry.npmjs.org:443 - - uses: actions/checkout@v4 - - uses: ljharb/actions/node/install@main - name: 'nvm install ${{ matrix.node-version }} && npm install' - with: - node-version: 'lts/*' - - run: npm run eclint - - dockerfile_lint: - runs-on: ubuntu-latest - steps: - - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - ghcr.io:443 - github.com:443 - raw.githubusercontent.com:443 - pkg-containers.githubusercontent.com:443 - nodejs.org:443 - registry.npmjs.org:443 - - uses: actions/checkout@v4 - - uses: ljharb/actions/node/install@main - name: 'nvm install ${{ matrix.node-version }} && npm install' - with: - node-version: 'lts/*' - - run: npm run dockerfile_lint - - doctoc: - runs-on: ubuntu-latest - steps: - - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - github.com:443 - raw.githubusercontent.com:443 - nodejs.org:443 - registry.npmjs.org:443 - - uses: actions/checkout@v4 - - uses: ljharb/actions/node/install@main - name: 'nvm install ${{ matrix.node-version }} && npm install' - with: - node-version: 'lts/*' - - run: npm run doctoc:check - - test_naming: - runs-on: ubuntu-latest - steps: - - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - github.com:443 - raw.githubusercontent.com:443 - - uses: actions/checkout@v4 - - name: check tests filenames - run: ./rename_test.sh --check diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml deleted file mode 100644 index 5cfc9c4..0000000 --- a/.github/workflows/rebase.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Automatic Rebase - -on: [pull_request_target] - -permissions: - contents: read - -jobs: - _: - permissions: - contents: write - name: "Automatic Rebase" - - runs-on: ubuntu-latest - - steps: - - name: Harden Runner - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - api.github.com:443 - github.com:443 - - uses: actions/checkout@v4 - - uses: ljharb/rebase@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 84fe2d8..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Tests: release process' - -on: [pull_request, push] - -permissions: - contents: read - -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Harden Runner - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - github.com:443 - api.github.com:443 - objects.githubusercontent.com:443 - raw.githubusercontent.com:443 - registry.npmjs.org:443 - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: "14" - - run: npm install - - name: Configure git - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git fetch --unshallow --tags -f || git fetch --tags -f - - name: Attempt `make release` process - run: echo proceed | make TAG=99.99.99 release - env: - GIT_EDITOR: "sed -i '1 s/^/99.99.99 make release test/'" - - name: Ensure tag is created - run: git tag | grep v99.99.99 diff --git a/.github/workflows/require-allow-edits.yml b/.github/workflows/require-allow-edits.yml deleted file mode 100644 index 13cafee..0000000 --- a/.github/workflows/require-allow-edits.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Require “Allow Edits” - -on: [pull_request_target] - -permissions: - contents: read - -jobs: - _: - permissions: - pull-requests: read - name: "Require “Allow Edits”" - - runs-on: ubuntu-latest - - steps: - - name: Harden Runner - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - api.github.com:443 - - uses: ljharb/require-allow-edits@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml deleted file mode 100644 index 3534809..0000000 --- a/.github/workflows/shellcheck.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: 'Tests: shellcheck' - -on: [pull_request, push] - -permissions: - contents: read - -jobs: - shellcheck_matrix: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - shell: - - bash - - sh - - dash - - ksh - file: - - nvm.sh - include: - - shell: bash - file: install.sh # only supported on bash - - shell: bash - file: bash_completion # only needed in bash/zsh - - shell: bash - file: nvm-exec # only runs in bash - - steps: - - name: Harden Runner - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - ghcr.io:443 - github.com:443 - pkg-containers.githubusercontent.com:443 - formulae.brew.sh:443 - - uses: actions/checkout@v4 - - name: Set up Homebrew - uses: Homebrew/actions/setup-homebrew@master - - name: Install latest shellcheck - run: brew install shellcheck - env: - HOMEBREW_NO_ANALYTICS: 1 - - run: which shellcheck - - run: shellcheck --version - - name: Run shellcheck on ${{ matrix.file }} - run: shellcheck -s ${{ matrix.shell }} ${{ matrix.file }} - - shellcheck: - permissions: - contents: none - needs: [shellcheck_matrix] - runs-on: ubuntu-latest - steps: - - run: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 60f7c05..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: urchin tests - -on: [push] - -permissions: - contents: read - -jobs: - tests: - permissions: - contents: write - - name: "tests" - runs-on: ubuntu-latest - defaults: - run: - shell: 'script -q -e -c "${{ matrix.shell }} {0}"' - - strategy: - fail-fast: false - matrix: - include: - - shell: bash - suite: install_script - # shell: - # - bash - # suite: - # - install_script - - steps: - - name: Harden Runner - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - github.com:443 - registry.npmjs.org:443 - raw.githubusercontent.com:443 - nodejs.org:443 - iojs.org:443 - - uses: actions/checkout@v4 - - run: sudo ${{ matrix.shell }} --version 2> /dev/null || dpkg -s ${{ matrix.shell }} 2> /dev/null || which ${{ matrix.shell }} - - run: curl --version - - run: wget --version - - uses: ljharb/actions/node/run@main - name: 'npm install && version checks' - with: - node-version: 'lts/*' - skip-ls-check: true - shell-command: echo installed - - run: npm ls urchin - - run: env - - run: make TERM=xterm-256color TEST_SUITE="${{ matrix.suite }}" SHELL="${{ matrix.shell }}" URCHIN="$(npx which urchin)" test-${{ matrix.shell }} - - nvm: - permissions: - contents: none - name: 'all test suites, all shells' - needs: [tests] - runs-on: ubuntu-latest - steps: - - run: true diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml deleted file mode 100644 index 8772bcc..0000000 --- a/.github/workflows/toc.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: update readme TOC - -on: [push] - -permissions: - contents: read - -jobs: - _: - permissions: - contents: write - name: "update readme TOC" - - runs-on: ubuntu-latest - - steps: - - name: Harden Runner - uses: step-security/harden-runner@v2 - with: - allowed-endpoints: - github.com:443 - registry.npmjs.org:443 - - uses: actions/checkout@v4 - with: - # https://github.com/actions/checkout/issues/217#issue-599945005 - # pulls all commits (needed for lerna / semantic release to correctly version) - fetch-depth: "0" - - # pulls all tags (needed for lerna / semantic release to correctly version) - - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - - uses: actions/setup-node@v4 - with: - node-version: '16' - - run: npm install - - run: npm run doctoc - - name: commit changes - uses: ljharb/actions-js-build/commit@v3+amendpush - with: - amend: true - force: true diff --git a/.github/workflows/windows-npm.yml b/.github/workflows/windows-npm.yml deleted file mode 100644 index 6119f79..0000000 --- a/.github/workflows/windows-npm.yml +++ /dev/null @@ -1,193 +0,0 @@ -name: 'Tests on Windows: `nvm install`' - -on: [pull_request, push] - -permissions: - contents: read - -env: - NVM_INSTALL_GITHUB_REPO: ${{ github.repository }} - NVM_INSTALL_VERSION: ${{ github.sha }} - -jobs: - msys_fail_install: - # Default installation does not work due to npm_config_prefix set to C:\npm\prefix - permissions: - contents: none - name: 'MSYS fail prefix nvm install' - runs-on: windows-latest - steps: - - name: Retrieve nvm - shell: bash - run: | - curl -fsSLo- "https://raw.githubusercontent.com/${NVM_INSTALL_GITHUB_REPO}/${NVM_INSTALL_VERSION}/install.sh" | METHOD=script bash - . "$HOME/.nvm/nvm.sh" - ! nvm install --lts - - msys_matrix: - permissions: - contents: none - name: 'MSYS nvm install' - runs-on: windows-latest - strategy: - fail-fast: false - matrix: - npm-node-version: - - '--lts' - - '--default 12' - - '--no-progress 10' - steps: - - name: Retrieve nvm - shell: bash - run: | - unset npm_config_prefix - if [ "${{ matrix.npm-node-version }}" = "--lts" ]; then - curl -fsSLo- "https://raw.githubusercontent.com/${NVM_INSTALL_GITHUB_REPO}/${NVM_INSTALL_VERSION}/install.sh" | bash - else - curl -fsSLo- "https://raw.githubusercontent.com/${NVM_INSTALL_GITHUB_REPO}/${NVM_INSTALL_VERSION}/install.sh" | METHOD=script bash - fi - . "$HOME/.nvm/nvm.sh" - nvm install ${{ matrix.npm-node-version }} - - cygwin_matrix: - continue-on-error: true - permissions: - contents: none - name: 'Cygwin nvm install' - runs-on: windows-latest - steps: - - name: Install Cygwin - shell: bash - run: | - export SITE='https://mirror.clarkson.edu/cygwin/' # see https://archlinux.org/mirrors/clarkson.edu/1603/ for uptime status - export SITE='https://mirrors.kernel.org/sourceware/cygwin/' - export LOCALDIR="$(pwd)" - export ROOTDIR="$USERPROFILE\\cygwin" - export PACKAGES='bash,git,curl' - - curl -fsSLo setup-x86_64.exe 'https://cygwin.com/setup-x86_64.exe' - ./setup-x86_64.exe --disable-buggy-antivirus -q -s "$SITE" -l "$LOCALDIR" -R "$ROOTDIR" -P "$PACKAGES" - - cat >~/setup.sh <