Skip to content

Commit

Permalink
test: resuable actions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellmueller committed Jul 25, 2023
1 parent fe45659 commit d3e3602
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/sonarcloud.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: sonarcloud-scan
on:
workflow_dispatch:
push:
jobs:
sonarcloud-scan:
uses: button-inc/button-shared-gh-actions/.github/workflows/scan-code-sonarcloud.yml@develop
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}
sonar-token: ${{ secrets.SONAR_TOKEN}}
5 changes: 1 addition & 4 deletions .github/workflows/test-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ jobs:
working-directory: ./app
run: yarn test --coverage
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
uses: ./.github/workflows/sonarcloud.yaml

eslint:
needs: [install-test-env]
Expand Down

0 comments on commit d3e3602

Please sign in to comment.