Skip to content

Commit 60cbecc

Browse files
committed
if no node, add node
1 parent 182b754 commit 60cbecc

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
jobs:
77
test:
88
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
container:
12+
- null
13+
- ubuntu
14+
container: ${{ matrix.container }}
915
steps:
1016
- uses: actions/checkout@v4
1117
- run: echo '{}' > deno.json

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ runs:
1616
cd "${{ inputs.path }}"
1717
fi
1818
pkgx --internal.activate "$PWD" > file
19-
node parse.js
19+
if ! command -v node >/dev/null 2>&1; then
20+
eval "$(pkgx +node)"
21+
fi
22+
node $GITHUB_ACTION_PATH/parse.js
2023
shell: bash

0 commit comments

Comments
 (0)