Add Github Actions test workflow #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |