The action is a composite action
that will run npm ci
to install dependencies, and then npm test
to run tests.
It makes use of:
- uses: wikiteq/npm-test-action@main
The below is an example of how to setup your GitHub Actions workflow on a repository:
.github/workflows/main.yml
name: Example
on:
push:
branches: [ master ]
pull_request:
branches: [ "*" ]
jobs:
npm-tests:
name: NPM tests
runs-on: ubuntu-latest
steps:
- uses: wikiteq/npm-test-action@main