Skip to content

Update GitHub Actions workflow #10

Update GitHub Actions workflow

Update GitHub Actions workflow #10

Workflow file for this run

name: Frontend CI
on:
push:
branches: [ "prod" ]
pull_request:
branches: [ "prod" ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: svelteFrontEnd
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint --if-present
- name: Build
run: npm run build
- name: Run tests
run: npm test --if-present