File tree Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Expand file tree Collapse file tree 4 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,10 @@ jobs:
31
31
32
32
- uses : ' actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a' # ratchet:actions/setup-node@v4
33
33
with :
34
- node-version : ' 20.x '
34
+ node-version-file : ' package.json '
35
35
36
36
- name : ' npm build'
37
37
run : ' npm ci && npm run build'
38
38
39
- - name : ' npm lint'
40
- # There's no need to run the linter for each operating system, since it
41
- # will find the same thing 3x and clog up the PR review.
42
- if : ${{ matrix.os == 'ubuntu-latest' }}
43
- run : ' npm run lint'
44
-
45
39
- name : ' npm test'
46
40
run : ' npm run test'
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- name : SSH to Google Cloud Platform compute instances
16
- author : Google LLC
15
+ name : ' SSH to Google Cloud Platform compute instances'
16
+ author : ' Google LLC'
17
17
description : |-
18
- Use this action to connect to Google Cloud Platform instances via ssh and execute user's commands.
18
+ Use this action to connect to Google Cloud Platform instances via ssh and
19
+ execute user's commands.
19
20
20
21
inputs :
21
22
instance_name :
@@ -71,7 +72,8 @@ inputs:
71
72
required : false
72
73
73
74
project_id :
74
- description : The GCP project ID. Overrides project ID set by credentials.
75
+ description : |-
76
+ The GCP project ID. Overrides project ID set by credentials.
75
77
required : false
76
78
77
79
flags :
@@ -97,9 +99,11 @@ inputs:
97
99
98
100
outputs :
99
101
stdout :
100
- description : Stdout from ssh command.
102
+ description : |-
103
+ Stdout from ssh command.
101
104
stderr :
102
- description : Stderr from ssh command.
105
+ description : |-
106
+ Stderr from ssh command.
103
107
104
108
branding :
105
109
icon : ' terminal'
Original file line number Diff line number Diff line change @@ -16,4 +16,6 @@ set -eEuo pipefail
16
16
FILES=" $( node -e " process.stdout.write(require('node:fs').readdirSync('./', { recursive: true }).filter((e) => {return e.endsWith('.test.ts') && !e.startsWith('node_modules');}).sort().join(' '));" ) "
17
17
18
18
set -x
19
+
20
+ # shellcheck disable=SC2086
19
21
exec node --require ts-node/register --test-reporter spec --test ${FILES}
Original file line number Diff line number Diff line change 9
9
"format" : " eslint . --fix" ,
10
10
"test" : " bash ./bin/runTests.sh"
11
11
},
12
+ "engines" : {
13
+ "node" : " 20.x" ,
14
+ "npm" : " 10.x"
15
+ },
12
16
"repository" : {
13
17
"type" : " git" ,
14
18
"url" : " https://github.com/google-github-actions/ssh-compute.git"
You can’t perform that action at this time.
0 commit comments