Skip to content

feat(): add tests for checkForConsoleUsage and checkForPresenceTests;… #30

feat(): add tests for checkForConsoleUsage and checkForPresenceTests;…

feat(): add tests for checkForConsoleUsage and checkForPresenceTests;… #30

Workflow file for this run

name: main
on:
push:
branch:
- main
pull_request:
branches:
- main
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest']
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: |
npm ci --ignore-scripts
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Codecov
uses: codecov/codecov-action@v3
- name: Send coverage report with Code Climate
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
coverageLocations: ${{ github.workspace }}/coverage/lcov.info:lcov