Skip to content

Commit

Permalink
ci: replace deprecated SonarQube coverage action
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Jan 20, 2025
1 parent 5e84f99 commit 1ba8828
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/copyright-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ on:
- master
pull_request:
branches:
- '**'
- "**"

jobs:

build-and-test:
name: copyright
runs-on: ubuntu-latest
Expand All @@ -20,10 +19,10 @@ jobs:
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"
architecture: x64

- name: install ldap
- name: install ldap
run: |
sudo apt-get update
sudo apt-get install libsasl2-dev python3-dev libldap2-dev libssl-dev
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/coverage-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ on:
- master
pull_request:
branches:
- '**'
- "**"

jobs:

build-and-test:
name: coverage
runs-on: ubuntu-latest
Expand All @@ -20,9 +19,9 @@ jobs:
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: "3.10"
architecture: x64

- name: install sundials
run: |
sudo apt-get update
Expand All @@ -44,16 +43,16 @@ jobs:
run: |
cd pkpdapp && codecov
- name: SonarCloud Scan Backend
uses: SonarSource/sonarcloud-github-action@master
uses: SonarSource/sonarqube-scan-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
projectBaseDir: pkpdapp
projectBaseDir: pkpdapp
- name: SonarCloud Scan Frontend
uses: SonarSource/sonarcloud-github-action@master
uses: SonarSource/sonarqube-scan-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_FRONTEND }}
with:
projectBaseDir: frontend-v2
projectBaseDir: frontend-v2

0 comments on commit 1ba8828

Please sign in to comment.