Skip to content

Commit

Permalink
Merge pull request #44 from gabrielrufino/develop
Browse files Browse the repository at this point in the history
Using gabrielrufino/node-ci@v1 on CI
  • Loading branch information
gabrielrufino authored Jan 6, 2024
2 parents a974178 + 9a8583a commit 65170fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 56 deletions.
58 changes: 5 additions & 53 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,17 @@ 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
- uses: gabrielrufino/node-ci@v1
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run test:cov
- uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage
sonar-token: ${{ secrets.SONAR_TOKEN }}
sonar-host-url: ${{ secrets.SONAR_HOST_URL }}
mutation-test:
runs-on: ubuntu-latest
needs:
- test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
Expand All @@ -57,20 +26,3 @@ jobs:
with:
name: mutation-reports
path: reports
sonarqube:
runs-on: ubuntu-latest
needs:
- test
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 }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 65170fd

Please sign in to comment.