mirror of
https://github.com/yamadashy/repomix.git
synced 2026-10-26 08:15:17 +01:00
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
name: Test Repomix Action
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- '.github/actions/repomix/**'
|
|
|
|
jobs:
|
|
test-action:
|
|
name: Test Node.js ${{ matrix.node-version }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [18, 20, 22]
|
|
include:
|
|
- node-version: 18
|
|
test-case: "minimal"
|
|
- node-version: 20
|
|
test-case: "basic"
|
|
- node-version: 22
|
|
test-case: "full"
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
|
|
|
|
- name: Run Repomix Action (Minimal)
|
|
if: matrix['test-case'] == 'minimal'
|
|
uses: ./.github/actions/repomix
|
|
with:
|
|
output: "repomix-minimal-output.txt"
|
|
|
|
- name: Run Repomix Action (Basic)
|
|
if: matrix['test-case'] == 'basic'
|
|
uses: ./.github/actions/repomix
|
|
with:
|
|
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:
|
|
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@ea165f8d65b6e75b540449e92b4886f43607fa02 # ratchet:actions/upload-artifact@v4
|
|
with:
|
|
name: repomix-output-node${{ matrix.node-version }}
|
|
path: repomix-*-output.txt
|