This repository was archived by the owner on Apr 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +35
-8
lines changed
Expand file tree Collapse file tree 6 files changed +35
-8
lines changed Original file line number Diff line number Diff line change 77 - package-ecosystem : " github-actions"
88 directory : " /"
99 schedule :
10- interval : " weekly"
10+ interval : " weekly"
Original file line number Diff line number Diff line change @@ -24,13 +24,39 @@ jobs:
2424 - name : Install packages
2525 run : npm ci
2626
27+ - name : Run tests
28+ run : npm run test
29+
2730 - name : Build package
2831 run : npm run build
2932
3033 - name : Test installing gh cli
31- run : node .
32- env :
34+ id : install
35+ uses : ./
36+ with :
3337 version : 2.28.0
3438
35- - name : Test gh command works
36- run : gh --version
39+ - name : Test gh command works on ubuntu
40+ if : matrix.os == 'ubuntu-latest'
41+ env :
42+ INSTALL_OUTPUT : ${{ steps.install.outputs.gh_version }}
43+ run : |
44+ echo "Installed gh version: $INSTALL_OUTPUT"
45+ $RUNNER_TOOL_CACHE/gh/2.28.0/x64/bin/gh --version
46+
47+ - name : Test gh command works on macos
48+ if : matrix.os == 'macos-latest'
49+ env :
50+ INSTALL_OUTPUT : ${{ steps.install.outputs.gh_version }}
51+ run : |
52+ echo "Installed gh version: $INSTALL_OUTPUT"
53+ $RUNNER_TOOL_CACHE/gh/2.28.0/x64/gh_2.28.0_macOS_amd64/bin/gh --version
54+
55+ - name : Test gh command works on windows
56+ if : matrix.os == 'windows-latest'
57+ shell : cmd
58+ env :
59+ INSTALL_OUTPUT : ${{ steps.install.outputs.gh_version }}
60+ run : |
61+ echo "Installed gh version: %INSTALL_OUTPUT%"
62+ %RUNNER_TOOL_CACHE%\gh\2.28.0\x64\bin\gh --version
Original file line number Diff line number Diff line change 11# setup-ghcli
2+
23[ ![ build & test] ( https://github.com/twildber/setup-ghcli/actions/workflows/test.yaml/badge.svg )] ( https://github.com/twildber/setup-ghcli/actions/workflows/test.yaml )
34[ ![ release] ( https://github.com/twildber/setup-ghcli/actions/workflows/release.yaml/badge.svg )] ( https://github.com/twildber/setup-ghcli/actions/workflows/release.yaml )
45
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ outputs:
1010 gh_version :
1111 description : " The installed version"
1212runs :
13- using : " node18 "
13+ using : " node16 "
1414 main : " lib/index.js"
Original file line number Diff line number Diff line change @@ -6626,7 +6626,7 @@ async function setup() {
66266626 const version = core . getInput ( "version" ) ;
66276627 const versionSpec = await getValidTag ( version ) ;
66286628 await downloadCli ( versionSpec , os . arch ( ) ) ;
6629- core . setOutput ( "gh_version" , version ) ;
6629+ core . setOutput ( "gh_version" , versionSpec ) ;
66306630}
66316631exports . setup = setup ;
66326632
Original file line number Diff line number Diff line change @@ -100,5 +100,5 @@ export async function setup() {
100100 const versionSpec = await getValidTag ( version ) ;
101101
102102 await downloadCli ( versionSpec , os . arch ( ) ) ;
103- core . setOutput ( "gh_version" , version ) ;
103+ core . setOutput ( "gh_version" , versionSpec ) ;
104104}
You can’t perform that action at this time.
0 commit comments