Skip to content

fix: codeclimate test env #3

fix: codeclimate test env

fix: codeclimate test env #3

Workflow file for this run

# Name of workflow
name: Node CI
# Trigger the workflow on push or pull request
on:
- push
- pull_request
jobs:
build:
# The type of machine to run the job on
runs-on: ubuntu-latest
strategy:
# Node versions list
matrix:
node-version: [18.x]
steps:
# Check-out repository under GitHub workspace
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# Step's name
- name: Use Node.js ${{ matrix.node-version }}
# Configures the node version used on GitHub-hosted runners
# https://github.com/actions/setup-node
uses: actions/setup-node@v3
# The Node.js version to configure
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build
# Install and build project
run: |
make install
make build
# Add environment variables
env:
CI: true
- name: Run linter
run: make lint
- name: Run tests
run: make test
- name: Test & publish code coverage
uses: paambaati/codeclimate-action@v3.2.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_SECRET }}
with:
coverageCommand: make test-coverage
debug: true