-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.44 KB
/
__test-action-setup-node.yml
File metadata and controls
51 lines (42 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Internal - Tests for "setup-node" action
on:
workflow_call:
permissions:
contents: read
jobs:
test:
name: Test "setup-node" (${{ matrix.working-directory }})
runs-on: ubuntu-latest
strategy:
matrix:
include:
- working-directory: tests/npm
package-manager: npm
lock-file: package-lock.json
run-script-command: npm run
- working-directory: tests/pnpm
package-manager: pnpm
lock-file: pnpm-lock.yaml
run-script-command: pnpm
- working-directory: tests/pnpm-package-manager
package-manager: pnpm
lock-file: pnpm-lock.yaml
run-script-command: pnpm
- working-directory: tests/yarn
package-manager: yarn
lock-file: yarn.lock
run-script-command: yarn
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- run: echo "lts/*" > .nvmrc
working-directory: ${{ matrix.working-directory }}
- id: setup-node
uses: ./actions/setup-node
with:
working-directory: ${{ matrix.working-directory }}
- name: Check "setup-node" outputs
run: |
if [ "${{ steps.setup-node.outputs.run-script-command }}" != "${{ matrix.run-script-command }}" ]; then
echo "get-package-manager outputs run-script-command is not valid"
exit 1
fi