Skip to content

Add Github Actions test workflow #4

Add Github Actions test workflow

Add Github Actions test workflow #4

Workflow file for this run

---
name: Deploy docs to GitHub Pages
on:
- push
concurrency:
group: "tests"
cancel-in-progress: false
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: package-lock.json
- name: Install Dependencies
run: npm ci
- name: Setup Code Climate
uses: remarkablemark/setup-codeclimate@v2
- name: Run Tests
run: |
cc-test-reporter before-build
npm run test-coverage
cc-test-reporter after-build --exit-code $?
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- name: Send coverage to Coveralls
uses: coverallsapp/github-action@v2