Skip to content

Commit ff25fca

Browse files
committed
Test output directly
1 parent 3d36811 commit ff25fca

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/integration.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,20 @@ jobs:
5656
git commit -m "Pin outdated packages"
5757
5858
- name: Run in dry-run mode
59+
id: run-importmaps-dry-run
5960
uses: ./
60-
env:
61-
IMPORTMAP_RUN_LOG: ${{ runner.temp }}/dry-run-output.txt
6261
with:
6362
github-token: ${{ secrets.GITHUB_TOKEN }}
6463
dry-run: "true"
6564
rails-root: ${{ runner.temp }}/test-app
6665

6766
- name: Assert all outdated packages appear in dry-run output
67+
env:
68+
IMPORTMAP_RUN_LOG: ${{ jobs.run-importmaps-dry-run.steps.run-importmaps-update.outputs.run-log }}
6869
run: |
6970
failed=0
7071
for pkg in hotkeys-js is-svg just-extend local-time md5 tom-select; do
71-
if grep -q "$pkg" $RUNNER_TEMP/dry-run-output.txt; then
72+
if grep -q "$pkg" <<< "$IMPORTMAP_RUN_LOG"; then
7273
echo "✓ $pkg"
7374
else
7475
echo "✗ $pkg not found in output"

0 commit comments

Comments
 (0)