name: Run tests
on:
    push:
        branches: ["gh-pages"]
    workflow_dispatch:
jobs:
    build:
        runs-on: ubuntu-latest
        timeout-minutes: 9
        steps:
            - uses: actions/checkout@v3

            - name: run install
              run: npm ci

            - name: run tests
              run: npm run test

            - name: tests passed
              if: ${{ success() }}
              run: echo tests passed

            - name: tests failed
              if: ${{ failure() }}
              run: echo tests failed
