diff --git a/.github/workflows/test-integration.yml b/.github/workflows/test-integration.yml new file mode 100644 index 0000000..e9a6c66 --- /dev/null +++ b/.github/workflows/test-integration.yml @@ -0,0 +1,36 @@ +name: 'Test Phase 2: Published Package' + +on: + workflow_dispatch: + workflow_call: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + + test-integration: + strategy: + matrix: + configuration: [Release, Debug] + + # FIX: cannot use ubuntu-latest + runs-on: ubuntu-22.04 # tip: runs-on can use ${{ matrix. }} + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 + - uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 + with: + dotnet-version: | + 10.x.x + 9.x.x + 8.x.x + 7.x.x + 6.x.x + 5.x.x + + - run: | + dotnet test ./tests-integration -c ${{ matrix.configuration }} \ + > test-output.txt + + grep -E " - .*\.dll" test-output.txt >> $GITHUB_STEP_SUMMARY diff --git a/.gitignore b/.gitignore index eba8475..757dac0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ obj !sandbox !src !tests -!integration +!tests-integration !.gitignore !Directory.Build.props diff --git a/integration/ZeroSerializer.IntegrationTests.csproj b/tests-integration/ZeroSerializer.IntegrationTests.csproj similarity index 73% rename from integration/ZeroSerializer.IntegrationTests.csproj rename to tests-integration/ZeroSerializer.IntegrationTests.csproj index b55f9df..ed2e1ac 100644 --- a/integration/ZeroSerializer.IntegrationTests.csproj +++ b/tests-integration/ZeroSerializer.IntegrationTests.csproj @@ -1,6 +1,6 @@ - + - net10.0;net8.0;net6.0;net5.0 + net10.0;net9.0;net8.0;net7.0;net6.0;net5.0 disable enable latest @@ -18,13 +18,15 @@ +