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 build file missing in SonarCloud CI #2033

Merged
merged 1 commit into from
Jan 21, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/kvrocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
os: ubuntu-20.04
compiler: gcc
- name: SonarCloud with Coverage
os: ubuntu-20.04
os: ubuntu-22.04
compiler: gcc
sonarcloud: -DCMAKE_CXX_FLAGS=--coverage
- name: Ubuntu Clang
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
jobs:
sonarcloud:
name: Upload to SonarCloud
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -59,6 +59,14 @@ jobs:
run: |
unzip sonarcloud-data.zip -d sonarcloud-data
ls -a sonarcloud-data

- uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Configure Kvrocks
run: |
./x.py build -j$NPROC --compiler gcc --skip-build

- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down