chore(deps): update sonarsource/sonarcloud-github-action action to v4 #396
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
name: Integration tests | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
permissions: | |
id-token: write | |
jobs: | |
it-tests-use-unknown-version-values-output: | |
name: "IT Test - releasability checks should fail on sonar-dummy with a wrong version" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- 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.43" | |
commit-sha: "e01f0f6545c31755d6ca128c5a3a14f6bf" | |
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-use-unknown-version-values-logs: | |
name: "IT Test - releasability checks should print failing Jira checks on sonar-dummy with a wrong version" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- 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.43" | |
commit-sha: "e01f0f6545c31755d6ca128c5a3a14f6bf" | |
ignore-failure: true | |
- uses: nick-fields/assert-action@aa0067e01f0f6545c31755d6ca128c5a3a14f6bf # v2 | |
name: Then outputs.logs value must contains a Jira failing check | |
with: | |
expected: "❌ Jira - version not found in Jira" | |
actual: ${{ steps.test-data.outputs.logs }} | |
comparison: contains | |
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-unknown-version-values-output | |
- it-tests-use-unknown-version-values-logs | |
steps: | |
- uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2 | |
with: | |
jobs: ${{ toJSON(needs) }} |