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 012b54a commit 1fa0ce7
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
- uses: actions/upload-artifact@v3
if: always()
with:
name: failed-screenshots
path: src/**/__diff_output__/*-diff.png
name: coverage-report
path: reports/coverage/**

build-acceptance:
runs-on: ubuntu-latest
Expand All @@ -67,6 +67,12 @@ jobs:
name: failed-screenshots
path: src/**/__diff_output__/*-diff.png

- uses: actions/upload-artifact@v3
if: always()
with:
name: coverage-report
path: reports/coverage/**

build-upload-failed-screenshots:
runs-on: ubuntu-latest
container: telefonica/web-builder:chromium93.0.4577-1.2.4
Expand All @@ -93,4 +99,20 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
azure-account-name: ${{ secrets.AZURE_ACCOUNT_NAME }}
azure-account-key: ${{ secrets.AZURE_ACCOUNT_KEY }}

sonarqube-scan:
runs-on: ubuntu-latest
needs: [build, build-acceptance]
if: !cancelled() && (needs.build.result != 'failure' || needs.build-acceptance.result != 'failure')
steps:
- uses: actions/checkout@v3

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

- name: SonarQube scan
run: ./scripts/sonarqube-scan.sh
###

0 comments on commit 1fa0ce7

Please sign in to comment.