mirror of
https://github.com/yamadashy/repomix.git
synced 2026-05-30 11:18:53 +02:00
373c40ea25
The composite action hard-coded `setup-node` to Node 24, so the
`test-action.yml` matrix `[22, 24, 26]` silently ran every job under
Node 24 — the 22 and 26 cells did not actually exercise those Node
versions.
Add a `node-version` input to the action (default `"24"` to preserve
current behavior for downstream consumers) and pass `${{
matrix.node-version }}` from each `test-action.yml` invocation so the
matrix tests what its name implies.
65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
name: Test Repomix Action
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- '.github/actions/repomix/**'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test-action:
|
|
name: Test Node.js ${{ matrix.node-version }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [22, 24, 26]
|
|
include:
|
|
- node-version: 22
|
|
test-case: "minimal"
|
|
- node-version: 24
|
|
test-case: "basic"
|
|
- node-version: 26
|
|
test-case: "full"
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Run Repomix Action (Minimal)
|
|
if: matrix['test-case'] == 'minimal'
|
|
uses: ./.github/actions/repomix
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
output: "repomix-minimal-output.txt"
|
|
|
|
- name: Run Repomix Action (Basic)
|
|
if: matrix['test-case'] == 'basic'
|
|
uses: ./.github/actions/repomix
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
directories: "src"
|
|
include: "**/*.ts"
|
|
output: "repomix-basic-output.txt"
|
|
compress: "true"
|
|
|
|
- name: Run Repomix Action (Full)
|
|
if: matrix['test-case'] == 'full'
|
|
uses: ./.github/actions/repomix
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
directories: "src tests"
|
|
include: "**/*.ts,**/*.md"
|
|
ignore: "**/*.test.ts"
|
|
output: "repomix-full-output.txt"
|
|
compress: "true"
|
|
additional-args: "--no-file-summary"
|
|
|
|
- name: Upload result
|
|
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
with:
|
|
name: repomix-output-node${{ matrix.node-version }}
|
|
path: repomix-*-output.txt
|