Bump jsdom from 23.0.0 to 23.0.1 in /frontend #347
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test_frontend: | |
name: Frontend | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [19.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache-dependency-path: "frontend" | |
- name: Install dependencies | |
working-directory: 'frontend' | |
run: npm ci | |
- name: Run ESlint | |
working-directory: 'frontend' | |
run: npm run lint | |
- name: Check formatting | |
working-directory: 'frontend' | |
run: npm run format-check | |
- name: Build frontend | |
working-directory: 'frontend' | |
run: npm run build | |
- name: Run tests | |
working-directory: 'frontend' | |
run: npm run test:no-watch | |
test_backend: | |
name: Backend | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies | |
working-directory: 'backend' | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Create sample .env | |
working-directory: 'backend' | |
run: echo "${{ secrets.ENV_TEST }}" > .env | |
- name: Run Tests | |
working-directory: 'backend' | |
run: | | |
python manage.py test |