|
15 | 15 | type: string |
16 | 16 |
|
17 | 17 | os: |
18 | | - description: "The OS label which run the test on. (ex: ubuntu-22.04, ubuntu-20.04, windows-latest, macos-latest)" |
| 18 | + description: "The OS label which run the test on. (ubuntu-24.04, ubuntu-22.04, windows-latest, macos-latest, etc.)" |
| 19 | + required: false |
| 20 | + type: string |
| 21 | + |
| 22 | + dotnet_sdk_version: |
| 23 | + description: "The minimum .NET SDK version which is used to run tests." |
19 | 24 | required: false |
20 | 25 | type: string |
21 | 26 |
|
|
41 | 46 | type: string |
42 | 47 |
|
43 | 48 | jobs: |
44 | | - prerequisites: |
45 | | - runs-on: ubuntu-latest |
46 | | - outputs: |
47 | | - os: ${{ steps.input-prerequisites.outputs.os }} |
48 | | - verbose: ${{ steps.input-prerequisites.outputs.verbose }} |
49 | | - env: |
50 | | - RUNS_ON_OS_LIST_DEFAULT: 'ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, windows-latest, macos-latest' |
51 | | - steps: |
52 | | - - name: Delay until the package is published |
53 | | - run: | |
54 | | - # If the workflow is triggered by 'release' event, |
55 | | - # wait for a while until the package is published on NuGet |
56 | | - if [ '${{ github.event_name }}' = 'release' ]; then |
57 | | - sleep 5.0m |
58 | | - fi |
59 | | -
|
60 | | - - name: Determine prerequisites |
61 | | - id: input-prerequisites |
62 | | - run: | |
63 | | - if [ -z '${{ github.event.inputs.os }}' ]; then |
64 | | - echo "os=${RUNS_ON_OS_LIST_DEFAULT}" >> $GITHUB_OUTPUT |
65 | | - else |
66 | | - echo 'os=${{ github.event.inputs.os }}' >> $GITHUB_OUTPUT |
67 | | - fi |
68 | | -
|
69 | | - if [ '${{ github.event.inputs.verbose }}' = 'true' ]; then |
70 | | - echo 'verbose=true' >> $GITHUB_OUTPUT |
71 | | - else |
72 | | - echo 'verbose=false' >> $GITHUB_OUTPUT |
73 | | - fi |
74 | | -
|
75 | 49 | run-test: |
76 | | - uses: smdn/Smdn.Fundamentals/.github/workflows/test.yml@workflows/test-v1.3.2 |
77 | | - needs: prerequisites |
| 50 | + name: Run tests with released packages |
| 51 | + uses: smdn/Smdn.Fundamentals/.github/workflows/test.yml@workflows/test-v1.4.0 |
78 | 52 | with: |
79 | | - project: ${{ github.event.inputs.project }} |
80 | | - os: ${{ needs.prerequisites.outputs.os }} |
81 | | - extra_options_common: '/p:TestReleasedPackage=true' |
82 | | - verbose: ${{ fromJSON(needs.prerequisites.outputs.verbose) }} |
83 | | - path_proj_install_project_assets: "eng/InstallProjectAssets.proj" |
84 | | - dotnet_sdk_version: '8.0.100' |
85 | | - timeout_minutes_test_job: 10 |
86 | | - timeout_hang: "[ {'OS':'windows','Timeout':'6min'}, {'OS':'macos','Timeout':'3min'}, {'OS':'','Timeout':'1min'} ]" |
87 | | - timeout_vstest_connection: "[ {'OS':'windows','Timeout':360}, {'OS':'macos','Timeout':180}, {'OS':'','Timeout':60} ]" |
88 | | - dotnet_test_options_verbosity_level: ${{ github.event.inputs.dotnet_test_options_verbosity_level }} |
89 | | - dotnet_test_options_framework: ${{ github.event.inputs.dotnet_test_options_framework }} |
90 | | - dotnet_test_options_filter_expression: ${{ github.event.inputs.dotnet_test_options_filter_expression }} |
| 53 | + project: ${{ inputs.project }} |
| 54 | + os: ${{ inputs.os == '' && 'ubuntu-24.04, ubuntu-22.04, ubuntu-20.04, windows-latest, macos-latest' || inputs.os }} |
| 55 | + extra_options_common: '/p:TestReleasedPackage=true' |
| 56 | + verbose: ${{ inputs.verbose == 'true' }} |
| 57 | + path_proj_install_project_assets: "eng/InstallProjectAssets.proj" |
| 58 | + dotnet_sdk_version: ${{ inputs.dotnet_sdk_version == '' && '8.0.100' || inputs.dotnet_sdk_version }} |
| 59 | + timeout_minutes_test_job: 10 |
| 60 | + timeout_hang: "[ {'OS':'windows','Timeout':'6min'}, {'OS':'macos','Timeout':'3min'}, {'OS':'','Timeout':'1min'} ]" |
| 61 | + timeout_vstest_connection: "[ {'OS':'windows','Timeout':360}, {'OS':'macos','Timeout':180}, {'OS':'','Timeout':60} ]" |
| 62 | + dotnet_test_options_verbosity_level: ${{ inputs.dotnet_test_options_verbosity_level }} |
| 63 | + dotnet_test_options_framework: ${{ inputs.dotnet_test_options_framework }} |
| 64 | + dotnet_test_options_filter_expression: ${{ inputs.dotnet_test_options_filter_expression }} |
91 | 65 | secrets: |
92 | 66 | token_repo: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments