name: Tests on: pull_request: branches: - main push: branches: - main jobs: tests: runs-on: ubuntu-latest steps: - name: Check Out Repo uses: actions/checkout@v4 - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: '20' - name: Install Dependencies, lint and Run Tests run: | echo "Installing dependencies..." npm ci echo "Running ESLint..." npx eslint . echo "Running tests..." npm test working-directory: ${{ matrix.directory }} strategy: matrix: directory: [client, server]