Skip to content

Merge pull request #134 from nktnet1/snyk-upgrade-921d3c8d6ed96464256… #295

Merge pull request #134 from nktnet1/snyk-upgrade-921d3c8d6ed96464256…

Merge pull request #134 from nktnet1/snyk-upgrade-921d3c8d6ed96464256… #295

Workflow file for this run

name: Pipeline
on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
pull_request:
branches:
- "*"
paths-ignore:
- '**/README.md'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 18.x]
fail-fast: true
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint
- name: Run tests with coverage
run: npm test -- --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Publish coverage
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{github.workspace}}/coverage/lcov.info:lcov