mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
36 lines
681 B
YAML
36 lines
681 B
YAML
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: '18'
|
|
|
|
- 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]
|