Skip to content

Update actions/checkout digest to b4ffde6 - autoclosed #77

Update actions/checkout digest to b4ffde6 - autoclosed

Update actions/checkout digest to b4ffde6 - autoclosed #77

Workflow file for this run

name: Node CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Build NPM package, run lint analysis and tests
run: |
npm install
npm run lint
npm run test
env:
CI: true
- name: Code Climate Coverage Action
uses: paambaati/[email protected]
with:
coverageCommand: npm run test:coverage
coverageLocations: ${{github.workspace}}/reports/coverage/lcov.info:lcov
debug: true
env:
CC_TEST_REPORTER_ID: 6ace5bc20f45a4d3b1d1bd56b37e2ed97c92776e402f4f687bb5ee50853cb51c
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
with:
args: >
-Dsonar.projectKey=ngarbezza_testy
-Dsonar.organization=ngarbezza
-Dsonar.projectName=Testy
-Dsonar.projectVersion=6.1.0
-Dsonar.javascript.lcov.reportPaths=reports/coverage/lcov.info
-Dsonar.coverage.exclusions=tests/**
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}