diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c02678b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,139 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +# a push run only tests what its own push changed, so pushes to main each get +# their own group; sharing one would let a newer push replace a queued run +concurrency: + group: ci-${{ github.event_name == 'pull_request' && github.ref || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + # Pick the packages whose tests could change: a package's own files, the + # workspace packages it tests against, and anything shared by all of them + changes: + if: github.repository == 'cutenode/nodevu' + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read # list the files a PR changes + outputs: + packages: ${{ steps.packages.outputs.packages }} + steps: + - name: Checkout the repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Find changed packages + id: filter + if: github.event_name != 'workflow_dispatch' + uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3 + with: + filters: | + shared: &shared + - 'package.json' + - '.c8rc.json' + - '.npmrc' + - '.github/workflows/ci.yml' + core: [*shared, 'core/**'] + fetchindex: [*shared, 'fetchindex/**'] + newest: [*shared, 'newest/**', 'core/**'] + oldest: [*shared, 'oldest/**', 'core/**'] + opt: [*shared, 'opt/**'] + parsefiles: [*shared, 'parsefiles/**'] + ranges: [*shared, 'ranges/**', 'core/**', 'aliases/**'] + static: [*shared, 'static/**', 'core/**'] + translate: [*shared, 'translate/**', 'ranges/**', 'core/**', 'aliases/**'] + # a manual run tests every workspace that has a coverage script + - name: List packages to test + id: packages + env: + CHANGES: ${{ steps.filter.outputs.changes }} + run: | + if [ "$GITHUB_EVENT_NAME" = workflow_dispatch ]; then + packages=$(for ws in $(jq -r '.workspaces[]' package.json); do + jq -e '.scripts.coverage' "$ws/package.json" > /dev/null && echo "$ws" + done | jq -Rcs 'split("\n") | map(select(. != ""))') + else + packages=$(jq -c 'map(select(. != "shared"))' <<< "$CHANGES") + fi + echo "packages=$packages" >> "$GITHUB_OUTPUT" + + # The root config lints every package, so one run covers the whole repo + lint: + if: github.repository == 'cutenode/nodevu' + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Setup Node.js + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: current + - name: Run npm install + run: npm install --workspaces=false + - name: Run npm lint + run: npm run lint + # npm rejects a provenance publish when repository.url doesn't match the + # repo the release workflow runs in, so every package release.yml + # publishes has to name it + - name: Check published packages name this repository + run: | + status=0 + for ws in aliases core fetchindex newest oldest parsefiles ranges static; do + if ! jq -e '.repository.url == "git+https://github.com/cutenode/nodevu.git"' "$ws/package.json" > /dev/null; then + echo "::error file=$ws/package.json::repository.url must be git+https://github.com/cutenode/nodevu.git" + status=1 + fi + done + exit "$status" + + test: + needs: changes + if: needs.changes.outputs.packages != '[]' + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + package: ${{ fromJSON(needs.changes.outputs.packages) }} + node-version: [current, lts/*, lts/-1] + env: + PACKAGE: ${{ matrix.package }} + steps: + - name: Checkout the repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + with: + node-version: ${{ matrix.node-version }} + - name: Install most recent npm + run: npm install -g npm + - name: Run npm install -w ${{ matrix.package }} + run: npm install -w "$PACKAGE" + - name: Run npm run coverage -w ${{ matrix.package }} + run: npm run coverage -w "$PACKAGE" + + # The one check to require on main: path filters skip the other jobs, and a + # required check that never reports blocks the merge + ci-ok: + if: always() + needs: [changes, lint, test] + runs-on: ubuntu-latest + steps: + - name: Fail if any job failed or was cancelled + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: exit 1 diff --git a/.github/workflows/lint-aliases.yml b/.github/workflows/lint-aliases.yml deleted file mode 100644 index ba04e4a..0000000 --- a/.github/workflows/lint-aliases.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Linter: aliases' - -on: - push: - paths: - - 'aliases/**' - branches: - - main - pull_request: - paths: - - 'aliases/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install -w aliases --include-workspace-root - run: npm install -w aliases --include-workspace-root - - name: Run npm run lint -w aliases - run: npm run lint -w aliases diff --git a/.github/workflows/lint-core.yml b/.github/workflows/lint-core.yml deleted file mode 100644 index c14c6cc..0000000 --- a/.github/workflows/lint-core.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Linter: core' - -on: - push: - paths: - - 'core/**' - branches: - - main - pull_request: - paths: - - 'core/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install -w core --include-workspace-root - run: npm install -w core --include-workspace-root - - name: Run npm run lint -w core - run: npm run lint -w core diff --git a/.github/workflows/lint-fetchindex.yml b/.github/workflows/lint-fetchindex.yml deleted file mode 100644 index 29ba51b..0000000 --- a/.github/workflows/lint-fetchindex.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Linter: fetchindex' - -on: - push: - paths: - - 'fetchindex/**' - branches: - - main - pull_request: - paths: - - 'fetchindex/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install -w fetchindex --include-workspace-root - run: npm install -w fetchindex --include-workspace-root - - name: Run npm run lint -w fetchindex - run: npm run lint -w fetchindex diff --git a/.github/workflows/lint-newest.yml b/.github/workflows/lint-newest.yml deleted file mode 100644 index b542e6b..0000000 --- a/.github/workflows/lint-newest.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Linter: newest' - -on: - push: - paths: - - 'newest/**' - branches: - - main - pull_request: - paths: - - 'newest/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install -w newest --include-workspace-root - run: npm install -w newest --include-workspace-root - - name: Run npm run lint -w newest - run: npm run lint -w newest diff --git a/.github/workflows/lint-oldest.yml b/.github/workflows/lint-oldest.yml deleted file mode 100644 index cdcbc04..0000000 --- a/.github/workflows/lint-oldest.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Linter: oldest' - -on: - push: - paths: - - 'oldest/**' - branches: - - main - pull_request: - paths: - - 'oldest/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install -w oldest --include-workspace-root - run: npm install -w oldest --include-workspace-root - - name: Run npm run lint -w oldest - run: npm run lint -w oldest diff --git a/.github/workflows/lint-opt.yml b/.github/workflows/lint-opt.yml deleted file mode 100644 index d4ad1a9..0000000 --- a/.github/workflows/lint-opt.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Linter: opt' - -on: - push: - paths: - - 'opt/**' - branches: - - main - pull_request: - paths: - - 'opt/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install -w opt --include-workspace-root - run: npm install -w opt --include-workspace-root - - name: Run npm run lint -w opt - run: npm run lint -w opt diff --git a/.github/workflows/lint-parsefiles.yml b/.github/workflows/lint-parsefiles.yml deleted file mode 100644 index 1f71f86..0000000 --- a/.github/workflows/lint-parsefiles.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Linter: parsefiles' - -on: - push: - paths: - - 'parsefiles/**' - branches: - - main - pull_request: - paths: - - 'parsefiles/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install -w parsefiles --include-workspace-root - run: npm install -w parsefiles --include-workspace-root - - name: Run npm run lint -w parsefiles - run: npm run lint -w parsefiles diff --git a/.github/workflows/lint-ranges.yml b/.github/workflows/lint-ranges.yml deleted file mode 100644 index 5c977e7..0000000 --- a/.github/workflows/lint-ranges.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Linter: ranges' - -on: - push: - paths: - - 'ranges/**' - branches: - - main - pull_request: - paths: - - 'ranges/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install -w ranges --include-workspace-root - run: npm install -w ranges --include-workspace-root - - name: Run npm run lint -w ranges - run: npm run lint -w ranges diff --git a/.github/workflows/lint-static.yml b/.github/workflows/lint-static.yml deleted file mode 100644 index 4e09cd7..0000000 --- a/.github/workflows/lint-static.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Linter: static' - -on: - push: - paths: - - 'static/**' - branches: - - main - pull_request: - paths: - - 'static/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install -w static --include-workspace-root - run: npm install -w static --include-workspace-root - - name: Run npm run lint -w static - run: npm run lint -w static diff --git a/.github/workflows/lint-translate.yml b/.github/workflows/lint-translate.yml deleted file mode 100644 index be66ff3..0000000 --- a/.github/workflows/lint-translate.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Linter: translate' - -on: - push: - paths: - - 'translate/**' - branches: - - main - pull_request: - paths: - - 'translate/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install -w translate --include-workspace-root - run: npm install -w translate --include-workspace-root - - name: Run npm run lint -w translate - run: npm run lint -w translate diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index d13c89f..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: 'Linter: all' - -on: - push: - paths: - - 'package.json' - - '*/package.json' - - '.oxlintrc.json' - - '.oxfmtrc.json' - - 'tools/**' - - '.github/workflows/**' - - '*.md' - - '.npmrc' - branches: - - main - pull_request: - paths: - - 'package.json' - - '*/package.json' - - '.oxlintrc.json' - - '.oxfmtrc.json' - - 'tools/**' - - '.github/workflows/**' - - '*.md' - - '.npmrc' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: current - - name: Run npm install - run: npm install --workspaces=false - - name: Run npm lint - run: npm run lint - # npm rejects a provenance publish when repository.url doesn't match the - # repo the release workflow runs in, so every package release.yml - # publishes has to name it - - name: Check published packages name this repository - run: | - status=0 - for ws in aliases core fetchindex newest oldest parsefiles ranges static; do - if ! jq -e '.repository.url == "git+https://github.com/cutenode/nodevu.git"' "$ws/package.json" > /dev/null; then - echo "::error file=$ws/package.json::repository.url must be git+https://github.com/cutenode/nodevu.git" - status=1 - fi - done - exit "$status" diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 0000000..7346136 --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,24 @@ +name: 'Linter: PR title' + +# PRs are squash-merged, so the title becomes the commit uppt reads to pick the +# next version +on: + pull_request: + types: [opened, edited, reopened] + branches: + - main + +permissions: {} + +jobs: + conventional-commit: + # uppt titles its release PRs with the bare version (`v1.1.1`) + if: ${{ !startsWith(github.event.pull_request.head.ref, 'release/v') }} + runs-on: ubuntu-latest + permissions: + pull-requests: read # read the PR title + steps: + - name: Check the PR title + uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tests-core.yml b/.github/workflows/tests-core.yml deleted file mode 100644 index 4e19a02..0000000 --- a/.github/workflows/tests-core.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Test Suite: core' - -on: - pull_request: - paths: - - 'core/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [current, lts/*, lts/-1] - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: ${{ matrix.node-version }} - - name: Install most recent npm - run: npm install -g npm - - name: Run npm install -w core - run: npm install -w core - - name: Run npm run coverage -w core - run: npm run coverage -w core diff --git a/.github/workflows/tests-fetchindex.yml b/.github/workflows/tests-fetchindex.yml deleted file mode 100644 index d208222..0000000 --- a/.github/workflows/tests-fetchindex.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Test Suite: fetchindex' - -on: - pull_request: - paths: - - 'fetchindex/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [current, lts/*, lts/-1] - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: ${{ matrix.node-version }} - - name: Install most recent npm - run: npm install -g npm - - name: Run npm install -w fetchindex - run: npm install -w fetchindex - - name: Run npm run coverage -w fetchindex - run: npm run coverage -w fetchindex diff --git a/.github/workflows/tests-newest.yml b/.github/workflows/tests-newest.yml deleted file mode 100644 index 51affbe..0000000 --- a/.github/workflows/tests-newest.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: 'Test Suite: newest' - -on: - pull_request: - paths: - - 'newest/**' - - 'core/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [current, lts/*, lts/-1] - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: ${{ matrix.node-version }} - - name: Install most recent npm - run: npm install -g npm - - name: Run npm install -w newest - run: npm install -w newest - - name: Run npm run coverage -w newest - run: npm run coverage -w newest diff --git a/.github/workflows/tests-oldest.yml b/.github/workflows/tests-oldest.yml deleted file mode 100644 index ad46d85..0000000 --- a/.github/workflows/tests-oldest.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: 'Test Suite: oldest' - -on: - pull_request: - paths: - - 'oldest/**' - - 'core/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [current, lts/*, lts/-1] - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: ${{ matrix.node-version }} - - name: Install most recent npm - run: npm install -g npm - - name: Run npm install -w oldest - run: npm install -w oldest - - name: Run npm run coverage -w oldest - run: npm run coverage -w oldest diff --git a/.github/workflows/tests-opt.yml b/.github/workflows/tests-opt.yml deleted file mode 100644 index a214937..0000000 --- a/.github/workflows/tests-opt.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Test Suite: opt' - -on: - pull_request: - paths: - - 'opt/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [current, lts/*, lts/-1] - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: ${{ matrix.node-version }} - - name: Install most recent npm - run: npm install -g npm - - name: Run npm install -w opt - run: npm install -w opt - - name: Run npm run coverage -w opt - run: npm run coverage -w opt diff --git a/.github/workflows/tests-parsefiles.yml b/.github/workflows/tests-parsefiles.yml deleted file mode 100644 index ed69ad0..0000000 --- a/.github/workflows/tests-parsefiles.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Test Suite: parsefiles' - -on: - pull_request: - paths: - - 'parsefiles/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [current, lts/*, lts/-1] - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: ${{ matrix.node-version }} - - name: Install most recent npm - run: npm install -g npm - - name: Run npm install -w parsefiles - run: npm install -w parsefiles - - name: Run npm run coverage -w parsefiles - run: npm run coverage -w parsefiles diff --git a/.github/workflows/tests-ranges.yml b/.github/workflows/tests-ranges.yml deleted file mode 100644 index f57fe7d..0000000 --- a/.github/workflows/tests-ranges.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: 'Test Suite: ranges' - -on: - pull_request: - paths: - - 'ranges/**' - - 'core/**' - - 'aliases/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [current, lts/*, lts/-1] - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: ${{ matrix.node-version }} - - name: Install most recent npm - run: npm install -g npm - - name: Run npm install -w ranges - run: npm install -w ranges - - name: Run npm run coverage -w ranges - run: npm run coverage -w ranges diff --git a/.github/workflows/tests-static.yml b/.github/workflows/tests-static.yml deleted file mode 100644 index 5c0f1aa..0000000 --- a/.github/workflows/tests-static.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: 'Test Suite: static' - -on: - pull_request: - paths: - - 'static/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [current, lts/*, lts/-1] - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: ${{ matrix.node-version }} - - name: Install most recent npm - run: npm install -g npm - - name: Run npm install -w static - run: npm install -w static - - name: Run npm run coverage -w static - run: npm run coverage -w static diff --git a/.github/workflows/tests-translate.yml b/.github/workflows/tests-translate.yml deleted file mode 100644 index 03ba7e7..0000000 --- a/.github/workflows/tests-translate.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: 'Test Suite: translate' - -on: - pull_request: - paths: - - 'translate/**' - - 'ranges/**' - - 'core/**' - - 'aliases/**' - branches: - - main - workflow_dispatch: - workflow_call: - -permissions: - contents: read - -jobs: - tests: - if: github.repository == 'cutenode/nodevu' - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [current, lts/*, lts/-1] - steps: - - name: Checkout the repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version: ${{ matrix.node-version }} - - name: Install most recent npm - run: npm install -g npm - - name: Run npm install -w translate - run: npm install -w translate - - name: Run npm run coverage -w translate - run: npm run coverage -w translate