Skip to content

SFD-89 Create merge pipeline #9

SFD-89 Create merge pipeline

SFD-89 Create merge pipeline #9

Workflow file for this run

name: PR Workflow
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache dependencies
id: cache
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Build app
run: npm run build
unit_tests:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache dependencies
id: cache
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Run tests
run: npm test