Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix gitflow actions #3228

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ jobs:
go-version: 1.21.x
- name: Checkout code
uses: actions/checkout@v4
with:
node-version: '20'
- name: Lint
run: |
make install-linter
make lint

17 changes: 14 additions & 3 deletions .github/workflows/sonarqube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,27 @@ on:
push:
branches:
- develop
- feature/sonarcloud-coverage
- feature/fix_github_workflows

jobs:
sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3
- name: Checkout code
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting.
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
env:
GOARCH: "amd64"

- name: Build Docker
run: make build-docker

- name: Compile SCs
run: make compile-scs
Expand All @@ -27,7 +38,7 @@ jobs:

# Triggering SonarQube analysis as results of it are required by Quality Gate check.
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sonar.projectKey=zkevm-node

sonar.projectKey=0xPolygonHermez_zkevm-node
sonar.organization=0xpolygonHermez
sonar.sources=.
sonar.exclusions=**/*_test.go
sonar.exclusions=**/mock_*.go
Expand Down
Loading