From cdb6c73ca6237eb112a5fe9e9cde6be79d4b9179 Mon Sep 17 00:00:00 2001 From: Gabriel Rufino Date: Fri, 15 Dec 2023 14:04:53 +0000 Subject: [PATCH 1/3] Using gabrielrufino/node-ci@v1 on CI --- .github/workflows/ci.yml | 42 +++------------------------------------- 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ed09f7..f58dd39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,48 +4,14 @@ on: - push jobs: - build: + node-ci: + name: Node CI runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: 'npm' - - run: npm ci - - run: npm run build - - uses: actions/upload-artifact@v3 - with: - name: build - path: build - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: 'npm' - - run: npm ci - - run: npm run lint - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: 'npm' - - run: npm ci - - run: npm run test:cov - - uses: actions/upload-artifact@v3 - with: - name: coverage - path: coverage + - uses: gabrielrufino/node-ci@v1 mutation-test: runs-on: ubuntu-latest - needs: - - test steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 @@ -59,8 +25,6 @@ jobs: path: reports sonarqube: runs-on: ubuntu-latest - needs: - - test continue-on-error: true steps: - uses: actions/checkout@v4 From 3e790f1b91599a8d87526e13605453779be909e5 Mon Sep 17 00:00:00 2001 From: Gabriel Rufino Date: Sat, 6 Jan 2024 07:46:12 -0300 Subject: [PATCH 2/3] SonarQube from node-ci --- .github/workflows/ci.yml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f58dd39..752f3ac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: gabrielrufino/node-ci@v1 + with: + sonar-token: ${{ secrets.SONAR_TOKEN }} + sonar-host-url: ${{ secrets.SONAR_HOST_URL }} mutation-test: runs-on: ubuntu-latest steps: @@ -23,18 +26,3 @@ jobs: with: name: mutation-reports path: reports - sonarqube: - runs-on: ubuntu-latest - continue-on-error: true - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/download-artifact@v3 - with: - name: coverage - path: coverage - - uses: sonarsource/sonarqube-scan-action@master - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} From 9a8583a5203757d36c8e652aac7b1cb180694f33 Mon Sep 17 00:00:00 2001 From: Gabriel Rufino Date: Sat, 6 Jan 2024 07:46:21 -0300 Subject: [PATCH 3/3] 1.0.31 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b96fe4b..56f6e0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gabrielrufino/samplesize", - "version": "1.0.30", + "version": "1.0.31", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gabrielrufino/samplesize", - "version": "1.0.30", + "version": "1.0.31", "license": "UNLICENSED", "devDependencies": { "@stryker-mutator/core": "^6.4.2", diff --git a/package.json b/package.json index 8b150d0..2d5bbd8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gabrielrufino/samplesize", - "version": "1.0.30", + "version": "1.0.31", "description": "Package to determine the correct sample size for a survey", "main": "build/index.js", "scripts": {