add failOnNoDiscoveredTests #16
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: Release starter and migration packages on tag push | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: [ '*' ] | |
| jobs: | |
| zip-and-release-packages: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set release version | |
| run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
| - name: Point Blowdryer at the released tag | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| # Bump the spotless source tag so the packaged settings.gradle pulls | |
| # the Blowdryer config matching this release (keeps existing owner/repo). | |
| sed -i -E "s#(github '[^']+', 'tag', ')[^']*(')#\1${RELEASE_VERSION}\2#" settings.gradle | |
| grep -n "', 'tag', '" settings.gradle | |
| - name: Prepare release folder | |
| run: mkdir packages | |
| - name: Zip starter | |
| uses: montudor/action-zip@v1 | |
| with: | |
| args: > | |
| zip -r packages/starter.zip . \ | |
| \ | |
| -x "*.git/*" \ | |
| -x ".github/workflows/build-packages.yml" \ | |
| -x ".github/workflows/buildscript-maintenance.yml" \ | |
| -x "docs/*" \ | |
| \ | |
| -x "spotless.importorder" \ | |
| -x "CODEOWNERS" \ | |
| -x "LICENSE" \ | |
| -x "README.md" \ | |
| \ | |
| -x "packages/" \ | |
| -x "packages/starter.zip" \ | |
| -x "packages/migration.zip" | |
| - name: Zip migration | |
| uses: montudor/action-zip@v1 | |
| with: | |
| args: > | |
| zip -r packages/migration.zip . \ | |
| \ | |
| -x "*.git/*" \ | |
| -x ".github/workflows/build-packages.yml" \ | |
| -x ".github/workflows/buildscript-maintenance.yml" \ | |
| -x "docs/*" \ | |
| -x "src/*" \ | |
| \ | |
| -x "spotless.importorder" \ | |
| -x "CODEOWNERS" \ | |
| -x "LICENSE" \ | |
| -x "README.md" \ | |
| \ | |
| -x "packages/" \ | |
| -x "packages/starter.zip" \ | |
| -x "packages/migration.zip" | |
| - name: Release tag | |
| uses: marvinpinto/action-automatic-releases@latest | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| automatic_release_tag: "${{ env.RELEASE_VERSION }}-packages" | |
| prerelease: false | |
| title: "${{ env.RELEASE_VERSION }} starter and migration packages" | |
| files: packages/* |