Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 20
node-version: 24
- run: npm test
- name: Create clean fixture
run: printf '%s\n' 'sku,title,price' 'A-1,Blue mug,12.00' > "$RUNNER_TEMP/example.csv"
Expand All @@ -33,3 +33,20 @@ jobs:
test -s "$RUNNER_TEMP/example.normalized.csv"
test -s "$RUNNER_TEMP/example.issues.csv"
! grep -F "$RUNNER_TEMP" "$GITHUB_STEP_SUMMARY"

released-action-smoke:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Create clean fixture
run: printf '%s\n' 'sku,title,price' 'A-1,Blue mug,12.00' > "$RUNNER_TEMP/released.csv"
- name: Run released Action
uses: softpeanut/csv-structural-preflight@v1
with:
path: ${{ runner.temp }}/released.csv
normalized_path: ${{ runner.temp }}/released.normalized.csv
report_path: ${{ runner.temp }}/released.issues.csv
- name: Verify released outputs
run: |
test -s "$RUNNER_TEMP/released.normalized.csv"
test -s "$RUNNER_TEMP/released.issues.csv"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
csv-preflight:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Check CSV structure
uses: softpeanut/csv-structural-preflight@v1
with:
Expand All @@ -35,7 +35,7 @@ jobs:
report_path: ${{ runner.temp }}/import.issues.csv
- name: Preserve evidence
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: csv-preflight
if-no-files-found: warn
Expand Down