From 57a551bffa8af90c7b247bd32e95e68e14f58ddd Mon Sep 17 00:00:00 2001 From: Andres Pinto Date: Thu, 17 Apr 2025 14:20:32 -0400 Subject: [PATCH] chore(actions): updated test and sonar cloud actions --- .github/workflows/run-tests.yml | 4 ++-- .github/workflows/sonar-analysis.yml | 17 ++++++++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1dcc8af5e..dba993810 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -21,10 +21,10 @@ jobs: node-version: [20.x] steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} registry-url: 'https://npm.pkg.github.com' diff --git a/.github/workflows/sonar-analysis.yml b/.github/workflows/sonar-analysis.yml index 7b5129a51..97e9182fa 100644 --- a/.github/workflows/sonar-analysis.yml +++ b/.github/workflows/sonar-analysis.yml @@ -9,17 +9,20 @@ jobs: sonarcloud: name: SonarCloud runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} registry-url: 'https://npm.pkg.github.com' - + - run: echo "registry=https://registry.yarnpkg.com/" > .npmrc - run: echo "@internxt:registry=https://npm.pkg.github.com" >> .npmrc # You cannot read packages from other private repos with GITHUB_TOKEN @@ -34,7 +37,7 @@ jobs: run: yarn test:cov - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@master + uses: SonarSource/sonarqube-scan-action@v5 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}