Skip to content

Commit 1f24b79

Browse files
authored
chore(actions): updated test and sonar cloud actions (#523)
1 parent f94d00d commit 1f24b79

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
node-version: [20.x]
2222
steps:
2323
- name: Checkout repo
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v2
27+
uses: actions/setup-node@v4
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030
registry-url: 'https://npm.pkg.github.com'

.github/workflows/sonar-analysis.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,20 @@ jobs:
99
sonarcloud:
1010
name: SonarCloud
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [20.x]
1215
steps:
13-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1417
with:
15-
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
18+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
1619

1720
- name: Set up Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v1
21+
uses: actions/setup-node@v4
1922
with:
2023
node-version: ${{ matrix.node-version }}
2124
registry-url: 'https://npm.pkg.github.com'
22-
25+
2326
- run: echo "registry=https://registry.yarnpkg.com/" > .npmrc
2427
- run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc
2528
# You cannot read packages from other private repos with GITHUB_TOKEN
@@ -34,7 +37,7 @@ jobs:
3437
run: yarn test:cov
3538

3639
- name: SonarCloud Scan
37-
uses: SonarSource/sonarcloud-github-action@master
40+
uses: SonarSource/sonarqube-scan-action@v5
3841
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
40-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
43+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)