Skip to content

Fixes 2613: React 18/Patternfly 5/Node 18 upgrade #567

Fixes 2613: React 18/Patternfly 5/Node 18 upgrade

Fixes 2613: React 18/Patternfly 5/Node 18 upgrade #567

name: build-test
on:
pull_request:
branches: [ main, prod-beta, prod-stable ]
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Read .nvmrc
run: echo "NVMRC=$(cat ../../nvmrc)" >> "$GITHUB_OUTPUT"
id: nvm
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- name: Install Dependencies
run: npm ci
- name: Tests
run: npm test
- name: Lint
run: npm run lint
- name: Build
run: npm run build --if-present
- uses: actions/cache@v3
id: restore-build
with:
path: ${{ github.workspace }}/dist/*
key: ${{ github.sha }}