Skip to content

Building and testing the application #4

Building and testing the application

Building and testing the application #4

name: Build and Test
on:
pull_request:
branches: [ main, develop]
workflow_dispatch:
workflow_call:
run-name: Building and testing the application
permissions:
contents: read
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test (Cypress run)
uses: cypress-io/github-action@v6
with:
component: true