BUILD-4613 provide a way to trigger releasability checks before creating a release #32
Workflow file for this run
This file contains 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
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
it-tests-use-input-default-values: | |
name: "IT Test - releasability checks should fail on sonar-dummy with a wrong version" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Given the gh-action is used with default values | |
id: test-data | |
uses: ./ | |
with: | |
organization: "SonarSource" | |
repository: "sonar-dummy" | |
branch: "master" | |
version: "4242.42.42" | |
ignore-failure: true | |
- uses: nick-fields/assert-action@aa0067e01f0f6545c31755d6ca128c5a3a14f6bf # v2 | |
name: Then outputs.status value must be 1 as there is no way this version exists within Jira | |
with: | |
expected: 1 | |
actual: ${{ steps.test-data.outputs.status }} | |
comparison: exact | |
it-tests: | |
name: "All IT Tests have to pass" | |
runs-on: ubuntu-latest | |
if: always() | |
needs: | |
# Add your tests here so that they prevent the merge of broken changes | |
- it-tests-use-input-default-values | |
steps: | |
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | |
with: | |
jobs: ${{ toJSON(needs) }} |