-
Notifications
You must be signed in to change notification settings - Fork 586
60 lines (58 loc) · 1.78 KB
/
repo-analysis.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Repo analysis
# Tests / Code Coverage workflow runs unit tests and uploads a code coverage report
# This workflow is run on pushes to main & every Pull Requests where a .go, .mod, .sum have been changed
on:
workflow_run:
workflows: ["Tests / Code Coverage", "Tests / E2E", "Tests / E2E Wasm"]
branches: [main]
types:
- completed
pull_request:
push:
branches:
- main
repo-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/*.go
go.mod
go.sum
**/go.mod
**/go.sum
- uses: actions/download-artifact@v4
if: env.GIT_DIFF
with:
name: '${{ github.sha }}-00-coverage'
- uses: actions/download-artifact@v4
if: env.GIT_DIFF
with:
name: '${{ github.sha }}-01-coverage'
- uses: actions/download-artifact@v4
if: env.GIT_DIFF
with:
name: '${{ github.sha }}-02-coverage'
- uses: actions/download-artifact@v4
if: env.GIT_DIFF
with:
name: '${{ github.sha }}-03-coverage'
- uses: actions/download-artifact@v4
if: env.GIT_DIFF
with:
name: '${{ github.sha }}-e2e-coverage'
continue-on-error: true
- uses: actions/download-artifact@v4
if: env.GIT_DIFF
with:
name: '${{ github.sha }}-e2e-wasm-coverage'
continue-on-error: true
- name: sonarcloud
if: ${{ env.GIT_DIFF && !github.event.pull_request.draft }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}