Skip to content

Frontend Test

Frontend Test #7

Workflow file for this run

name: Frontend Test
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * *'
jobs:
test:
strategy:
matrix:
node-version:
- 18
- 20
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: './frontend/package-lock.json'
- name: Install dependencies
working-directory: ./frontend
run: npm install
- name: Run tests
working-directory: ./frontend
run: npm test