Skip to content

Merge pull request #384 from Nyaran/dependabot/npm_and_yarn/typescrip… #815

Merge pull request #384 from Nyaran/dependabot/npm_and_yarn/typescrip…

Merge pull request #384 from Nyaran/dependabot/npm_and_yarn/typescrip… #815

Workflow file for this run

name: Test
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
node-version: [18, 20, 22]
architecture:
- x64
name: Node ${{ matrix.node-version }} - ${{ matrix.architecture }} on ${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected]
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
architecture: ${{ matrix.architecture }}
# Runs a single command using the runners shell
- name: Install dependencies
run: npm install
# Runs a set of commands using the runners shell
- name: Run the tests
run: npm test
# Report Coverage
- name: Report coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/