|
15 | 15 | inputs: |
16 | 16 | # could we get this from pjson? |
17 | 17 | packageName: |
18 | | - description: "The npm package that this repository publishes. ex: @salesforce/core" |
| 18 | + description: 'The npm package that this repository publishes. ex: @salesforce/core' |
19 | 19 | required: true |
20 | 20 | type: string |
21 | 21 | externalProjectGitUrl: |
22 | | - description: "The url that will be cloned. This contains the NUTs you want to run. Ex: https://github.com/salesforcecli/plugin-user" |
| 22 | + description: 'The url that will be cloned. This contains the NUTs you want to run. Ex: https://github.com/salesforcecli/plugin-user' |
23 | 23 | type: string |
24 | 24 | required: true |
25 | 25 | command: |
26 | 26 | required: false |
27 | 27 | type: string |
28 | 28 | default: yarn test:nuts |
29 | | - description: "command to execute (ex: yarn test:nuts)" |
| 29 | + description: 'command to execute (ex: yarn test:nuts)' |
30 | 30 | nodeVersion: |
31 | 31 | required: false |
32 | 32 | description: version of node to run tests against. Use things like [lts/-1, lts/*, latest] to avoid hardcoding versions |
33 | 33 | type: string |
34 | 34 | default: lts/* |
35 | 35 | os: |
36 | 36 | required: false |
37 | | - description: "runs-on property, ex: ubuntu-latest, windows-latest" |
| 37 | + description: 'runs-on property, ex: ubuntu-latest, windows-latest' |
38 | 38 | type: string |
39 | | - default: "ubuntu-latest" |
| 39 | + default: 'ubuntu-latest' |
40 | 40 | sfdxExecutablePath: |
41 | 41 | required: false |
42 | 42 | description: "Path to sfdx executable to be used by NUTs, defaults to ''" |
43 | 43 | type: string |
44 | 44 | preBuildCommands: |
45 | 45 | required: false |
46 | | - description: "commands to run before the build...for example, to delete known module conflicts" |
| 46 | + description: 'commands to run before the build...for example, to delete known module conflicts' |
47 | 47 | type: string |
48 | 48 | default: 'echo "no preBuildCommands passed"' |
49 | 49 | postBuildCommands: |
50 | 50 | required: false |
51 | | - description: "script to run after the build" |
| 51 | + description: 'script to run after the build' |
52 | 52 | type: string |
53 | 53 | default: 'echo "no postBuildCommands passed"' |
54 | 54 | preExternalBuildCommands: |
55 | 55 | required: false |
56 | | - description: "commands to run before the build of the external repo...for example, to delete known module conflicts" |
| 56 | + description: 'commands to run before the build of the external repo...for example, to delete known module conflicts' |
57 | 57 | type: string |
58 | 58 | default: 'echo "no preExternalBuildCommands passed"' |
59 | 59 | preSwapCommands: |
60 | 60 | required: false |
61 | | - description: "commands to run before ANY modifications happen. For example, changes that modify the lockfile like yarn add or remove need to happen before the action manually swaps the dependency under test" |
| 61 | + description: 'commands to run before ANY modifications happen. For example, changes that modify the lockfile like yarn add or remove need to happen before the action manually swaps the dependency under test' |
62 | 62 | type: string |
63 | 63 | default: 'echo "no preSwapCommands passed"' |
64 | 64 | useCache: |
|
73 | 73 | required: false |
74 | 74 | description: "branch to clone from the repo. Defaults to 'main'" |
75 | 75 | type: string |
76 | | - default: "main" |
| 76 | + default: 'main' |
77 | 77 | ignoreScripts: |
78 | 78 | required: false |
79 | | - description: "if true, will run yarn install --ignore-scripts when building package in node_modules" |
| 79 | + description: 'if true, will run yarn install --ignore-scripts when building package in node_modules' |
80 | 80 | type: boolean |
81 | 81 | default: false |
82 | 82 |
|
@@ -126,6 +126,7 @@ jobs: |
126 | 126 |
|
127 | 127 | - name: Swap this dependency for the version on this branch |
128 | 128 | if: ${{ steps.cache-nodemodules.outputs.cache-hit != 'true' }} |
| 129 | + shell: bash |
129 | 130 | run: | |
130 | 131 | yarn remove "$INPUTS_PACKAGE_NAME" |
131 | 132 | yarn add ${{ github.repository }}#${{ github.sha }} |
|
0 commit comments