Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Gerwoud is running tests πŸš€ #2

Gerwoud is running tests πŸš€

Gerwoud is running tests πŸš€ #2

name: UGent-3-frontend-linter
run-name: ${{ github.actor }} is running tests πŸš€
on: [pull_request]
jobs:
Frontend-tests:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
working-directory: ./frontend
run: npm ci
- name: Build
working-directory: ./frontend
run: npm run build
- name: Preview Web App
working-directory: ./frontend
run: npm run preview &
- name: Run linting
working-directory: ./frontend
run: npm run lint