Skip to content

Store slot visibility settings on a per-Study basis #277

Store slot visibility settings on a per-Study basis

Store slot visibility settings on a per-Study basis #277

Workflow file for this run

# This file describes a GitHub Actions workflow.
# Reference: https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml
name: Run unit tests
# Configure GitHub Actions to run the jobs whenever any of these things happens:
# 1. Someone clicks the "Run workflow" button on the "Actions" page on GitHub.
# 2. Someone pushes commits onto the `main` branch.
# 3. Someone opens a Pull Request based upon the `main` branch.
#
# References:
# - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
# - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
# - https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
on:
workflow_dispatch: {}
push:
branches: [main]
pull_request:
branches: [main]
jobs:
Run-Unit-Tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# References:
# - https://github.com/actions/checkout
# - https://github.com/actions/setup-node
steps:
- run: echo "Testing commit ${{ github.sha }} on a ${{ runner.os }} server..."
- name: Check out the commit
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install npm packages
run: npm ci
- name: Check formatting
run: npm run check.format
- name: Lint code
run: npm run lint
- name: Check for circular imports
run: npm run check.imports
- name: Run build
run: npm run build
- name: Run unit tests
run: npm run test.unit