Skip to content

feat update cps file upload component #381

feat update cps file upload component

feat update cps file upload component #381

name: CPS Shared UI Checker
on:
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js v20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Build app
run: npm run build
- name: Lint app
run: npm run lint
- name: Run Cypress component tests
run: npx cypress run --component