Publish branches with rc/* pattern as CI #15
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | ||
| # Controls when the action will run. Triggers the workflow on push or pull request | ||
| on: | ||
| push: | ||
| branches: | ||
| - dev | ||
| - future | ||
| tags: | ||
| - v[0-9]+.[0-9]+.[0-9]+ # Matches all semantic versioning tags with major, minor, patch | ||
| pull_request: | ||
| branches: | ||
| - dev | ||
| - future | ||
| env: | ||
| dotnet_sdk_version: '8.0.100-preview.5.23303.2' | ||
| REPOSITORY_NAME: ${{ github.event.repository.name }} | ||
| MORYX_PACKAGE_TARGET_DEV: 'https://www.myget.org/F/moryx/api/v2/package' | ||
| MORYX_PACKAGE_TARGET_V3_DEV: 'https://www.myget.org/F/moryx/api/v3/index.json' | ||
| MORYX_PACKAGE_TARGET_FUTURE: 'https://www.myget.org/F/moryx-future/api/v2/package' | ||
| MORYX_PACKAGE_TARGET_V3_FUTURE: 'https://www.myget.org/F/moryx-future/api/v3/index.json' | ||
| MORYX_PACKAGE_TARGET_RELEASE: 'https://api.nuget.org/v3/index.json' | ||
| MORYX_PACKAGE_TARGET_V3_RELEASE: 'https://api.nuget.org/v3/index.json' | ||
| jobs: | ||
| SetupEnvironment: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - run: echo "" | ||
| outputs: | ||
| dotnet_sdk_version: ${{ env.dotnet_sdk_version }} | ||
| REPOSITORY_NAME: ${{ env.REPOSITORY_NAME }} | ||
| MORYX_PACKAGE_TARGET_DEV: ${{ env.MORYX_PACKAGE_TARGET_DEV }} | ||
| MORYX_PACKAGE_TARGET_V3_DEV: ${{ env.MORYX_PACKAGE_TARGET_V3_DEV }} | ||
| MORYX_PACKAGE_TARGET_FUTURE: ${{ env.MORYX_PACKAGE_TARGET_FUTURE }} | ||
| MORYX_PACKAGE_TARGET_V3_FUTURE: ${{ env.MORYX_PACKAGE_TARGET_V3_FUTURE }} | ||
| MORYX_PACKAGE_TARGET_RELEASE: ${{ env.MORYX_PACKAGE_TARGET_RELEASE }} | ||
| MORYX_PACKAGE_TARGET_V3_RELEASE: ${{ env.MORYX_PACKAGE_TARGET_V3_RELEASE }} | ||
| Build: | ||
| needs: [SetupEnvironment] | ||
| uses: phoenixcontact/tools/.github/workflows/build-tool.yml@future | ||
| with: | ||
| dotnet_sdk_version: ${{ needs.SetupEnvironment.outputs.dotnet_sdk_version }} | ||
| REPOSITORY_NAME: ${{ needs.SetupEnvironment.outputs.REPOSITORY_NAME }} | ||
| UnitTests: | ||
| needs: [SetupEnvironment, Build] | ||
| uses: ./.github/workflows/unittest-tool.yml@future | ||
| with: | ||
| dotnet_sdk_version: ${{ needs.SetupEnvironment.outputs.dotnet_sdk_version }} | ||
| REPOSITORY_NAME: ${{ needs.SetupEnvironment.outputs.REPOSITORY_NAME }} | ||
| IntegrationTests: | ||
| needs: [SetupEnvironment, Build] | ||
| uses: phoenixcontact/tools/.github/workflows/integrationtest-tool.yml@future | ||
| with: | ||
| dotnet_sdk_version: ${{ needs.SetupEnvironment.outputs.dotnet_sdk_version }} | ||
| REPOSITORY_NAME: ${{ needs.SetupEnvironment.outputs.REPOSITORY_NAME }} | ||
| ReportGenerator: | ||
| needs: [SetupEnvironment, UnitTests, IntegrationTests] | ||
| uses: phoenixcontact/tools/.github/workflows/reportgenerator-tool.yml@future | ||
| with: | ||
| REPOSITORY_NAME: ${{ needs.SetupEnvironment.outputs.REPOSITORY_NAME }} | ||
| Publish-Test-Coverage: | ||
| needs: [SetupEnvironment, ReportGenerator] | ||
| uses: phoenixcontact/tools/.github/workflows/publish-test-coverage-tool.yml@future | ||
| with: | ||
| REPOSITORY_NAME: ${{ needs.SetupEnvironment.outputs.REPOSITORY_NAME }} | ||
| secrets: | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
| Documentation: | ||
| needs: [SetupEnvironment, UnitTests] | ||
| uses: phoenixcontact/tools/.github/workflows/documentation-tool.yml@future | ||
| with: | ||
| REPOSITORY_NAME: ${{ needs.SetupEnvironment.outputs.REPOSITORY_NAME }} | ||
| Publish: | ||
| needs: [SetupEnvironment, UnitTests] | ||
| uses: phoenixcontact/tools/.github/workflows/publish-tool.yml@future | ||
| with: | ||
| dotnet_sdk_version: ${{ needs.SetupEnvironment.outputs.dotnet_sdk_version }} | ||
| REPOSITORY_NAME: ${{ needs.SetupEnvironment.outputs.REPOSITORY_NAME }} | ||
| MORYX_PACKAGE_TARGET_DEV: ${{ needs.SetupEnvironment.outputs.MORYX_PACKAGE_TARGET_DEV }} | ||
| MORYX_PACKAGE_TARGET_V3_DEV: ${{ needs.SetupEnvironment.outputs.MORYX_PACKAGE_TARGET_V3_DEV }} | ||
| MORYX_PACKAGE_TARGET_FUTURE: ${{ needs.SetupEnvironment.outputs.MORYX_PACKAGE_TARGET_FUTURE }} | ||
| MORYX_PACKAGE_TARGET_V3_FUTURE: ${{ needs.SetupEnvironment.outputs.MORYX_PACKAGE_TARGET_V3_FUTURE }} | ||
| MORYX_PACKAGE_TARGET_RELEASE: ${{ needs.SetupEnvironment.outputs.MORYX_PACKAGE_TARGET_RELEASE }} | ||
| MORYX_PACKAGE_TARGET_V3_RELEASE: ${{ needs.SetupEnvironment.outputs.MORYX_PACKAGE_TARGET_V3_RELEASE }} | ||
| secrets: | ||
| MYGET_TOKEN: ${{secrets.MYGET_TOKEN}} | ||
| NUGET_TOKEN: ${{secrets.NUGET_TOKEN}} | ||