# This workflow builds and runs the tests on pull requests

name: Run Tests

on:
  # Triggers the workflow on push or pull request events but only for the master branch
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  workflow_dispatch:

jobs:
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      # Run npm install, this also runs the tests (as part of prepare)
      - name: Install and run tests
        run: npm install
