2727 required : false
2828 type : string
2929 os :
30- description : " The OS label which run the test on. (ex: ubuntu-latest , windows-latest, macos-latest)"
30+ description : " The OS label which run the test on. (ex: ubuntu-22.04, ubuntu-20.04 , windows-latest, macos-latest)"
3131 required : false
3232 type : string
3333 verbose :
@@ -40,23 +40,32 @@ jobs:
4040 prerequisites :
4141 runs-on : ubuntu-latest
4242 outputs :
43+ os : ${{ steps.input-prerequisites.outputs.os }}
4344 verbose : ${{ steps.input-prerequisites.outputs.verbose }}
45+ env :
46+ RUNS_ON_OS_LIST_DEFAULT : ' ubuntu-22.04, ubuntu-20.04, windows-latest, macos-latest'
4447 steps :
4548 - name : Determine prerequisites
4649 id : input-prerequisites
4750 run : |
51+ if [ -z '${{ github.event.inputs.os }}' ]; then
52+ echo "os=${RUNS_ON_OS_LIST_DEFAULT}" >> $GITHUB_OUTPUT
53+ else
54+ echo 'os=${{ github.event.inputs.os }}' >> $GITHUB_OUTPUT
55+ fi
56+
4857 if [ '${{ github.event.inputs.verbose }}' = 'true' ]; then
49- echo '::set-output name= verbose:: true'
58+ echo 'verbose= true' >> $GITHUB_OUTPUT
5059 else
51- echo '::set-output name= verbose:: false'
60+ echo 'verbose= false' >> $GITHUB_OUTPUT
5261 fi
5362
5463 run-test :
55- uses : smdn/Smdn.Fundamentals/.github/workflows/test.yml@workflows/test-v1.0.5
64+ uses : smdn/Smdn.Fundamentals/.github/workflows/test.yml@workflows/test-v1.1.2
5665 needs : prerequisites
5766 with :
5867 project : ${{ github.event.inputs.project }}
59- os : ${{ github.event.inputs .os }}
68+ os : ${{ needs.prerequisites.outputs .os }}
6069 verbose : ${{ fromJSON(needs.prerequisites.outputs.verbose) }}
6170 dotnet_sdk_version : ' 6.0.200'
6271 timeout_hang : " [ {'OS':'windows','Timeout':'6min'}, {'OS':'macos','Timeout':'3min'}, {'OS':'','Timeout':'1min'} ]"
0 commit comments