Skip to content

text changed on about-us page / replace monthly passes to Gift passes #471

text changed on about-us page / replace monthly passes to Gift passes

text changed on about-us page / replace monthly passes to Gift passes #471

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Integration - Frontend
on:
pull_request:
branches:
- main
paths:
- "react-fm/**"
jobs:
build:
# Defines the type of runner the job runs on
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout to the repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up NodeJS environment
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# Consider this as an add on to optimize the execution of actions
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install package dependencies
run: npm ci
working-directory: react-fm
- name: Check linting and formatting
# Custom script for checking the linting and formatting being in place
run: npm run lint
working-directory: react-fm
# Run test cases and this could ensure minimum coverage as well if set
# - name: Execute test cases
# run: npm run test
# working-directory: react-fm
- name: Create test build
run: npm run build
working-directory: react-fm