You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 1. If you have protected branches, go to Branches > edit protected branch > enable 'Require status checks to pass before
# merging' and select the 'Test' status check.
# Note: make sure to commit package-lock.json, this is needed for `npm ci`.
# Defines the trigger for this action (by default on push to master/production and on all pull requests)
# For more information see: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#about-workflow-events)
on:
push:
branches:
- master
- production
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
# Checks out the current repository.
- uses: actions/checkout@v4
# Configures a Node.js environment.
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
# Run `npm ci` to re-create your local environment (make sure to commit your package-lock.json!).
# Finally run `npm test` (make sure you have defined a proper test command in package.json).