Skip to content

Commit

Permalink
WEB-1570 setup gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Ladaria committed Oct 3, 2023
1 parent 451deaf commit 15c7e73
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
build-upload-failed-screenshots:
runs-on: ubuntu-latest
container: telefonica/web-builder:chromium93.0.4577-1.2.4
needs: [build, build-acceptance]
needs: [build-acceptance]
if: '!cancelled()'

steps:
Expand All @@ -87,7 +87,7 @@ jobs:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
run: yarn install --immutable --immutable-cache

- if: needs.build.result == 'failure' || needs.build-acceptance.result == 'failure'
- if: needs.build-acceptance.result == 'failure'
uses: actions/download-artifact@v3
with:
name: failed-screenshots
Expand All @@ -101,17 +101,17 @@ jobs:
azure-account-key: ${{ secrets.AZURE_ACCOUNT_KEY }}

sonarqube-scan:
runs-on: ubuntu-latest
needs: [build, build-acceptance]
if: "!cancelled() && needs.build.result == 'success' && needs.build-acceptance.result == 'success'"
runs-on: [self-hosted, cdorunner-life-novum, Linux]
# needs: [build, build-acceptance]
# if: "!cancelled() && needs.build.result == 'success' && needs.build-acceptance.result == 'success'"
steps:
- uses: actions/checkout@v3

- name: Download coverage report
uses: actions/download-artifact@v3
with:
name: coverage-report
path: reports/coverage
# - name: Download coverage report
# uses: actions/download-artifact@v3
# with:
# name: coverage-report
# path: reports/coverage

- name: SonarQube scan
run: ./scripts/sonarqube-scan.sh
Expand Down

0 comments on commit 15c7e73

Please sign in to comment.