chore(main): release 0.4.2 #441
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: Run Tests | |
| on: | |
| push: | |
| pull_request: | |
| concurrency: | |
| group: SendiumTests-${{github.ref}} | |
| cancel-in-progress: true | |
| jobs: | |
| quick-start: | |
| permissions: | |
| contents: read | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Test quick-start generator | |
| run: sh tests/quick-start-test.sh | |
| tests: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Setup Java | |
| id: setup_java | |
| uses: graalvm/setup-graalvm@v1 | |
| with: | |
| java-version: 25 | |
| distribution: 'graalvm' | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build Backend | |
| run: | | |
| export QUARKUS_LOG_LEVEL=ERROR | |
| chmod +x ./mvnw | |
| ./mvnw verify | |
| - name: Build quick-start test image | |
| run: docker build -t sendium:quick-start-test -f sendium-app/src/main/docker/Dockerfile.jvm sendium-app | |
| - name: Test generated container startup | |
| env: | |
| SENDIUM_TEST_IMAGE: sendium:quick-start-test | |
| run: sh tests/quick-start-test.sh | |
| - id: result | |
| name: Sendium Test Result | |
| if: always() | |
| run: | | |
| echo "result=${{job.status}}" >> $GITHUB_ENV | |
| echo "result=${{job.status}}" >> $GITHUB_OUTPUT | |
| - name: Cancel current workflow run | |
| if: failure() | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| github.rest.actions.cancelWorkflowRun({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| run_id: context.runId | |
| }) | |
| - name: Google Chat Notification | |
| uses: jchrist/google-chat-github-action@v1 | |
| with: | |
| name: Sendium Build | |
| url: ${{ secrets.GOOGLE_CHAT_WEBHOOK }} | |
| status: ${{ job.status }} | |
| if: always() | |
| continue-on-error: true | |
| automerge-dependabot: | |
| needs: [quick-start, tests] | |
| if: success() && github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Auto-merge Dependabot PRs | |
| env: | |
| GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| run: | | |
| echo "found successful dependabot PR, merging it" | |
| gh pr merge "${{ github.event.pull_request.number }}" --auto --rebase |