Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
fix(action): update to matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
wesdevpro committed Nov 19, 2023
1 parent c135baa commit e0228a7
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,25 @@ name: Ensure React Project Builds

on:
push:
branches: [ "dev", "main" ]
branches: ["dev", "main"]
pull_request:
branches: [ "dev", "main" ]

branches: ["dev", "main"]
env:
WORKING_DIRECTORY: ./src/EducationTrail/ClientApp

WORKING_DIRECTORY: ./src/EducationTrail/ClientApp
jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
# omits 14.x because some of our devDependencies require 16.x or higher
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'npm'
- run: npm ci --prefix "${{ env.WORKING_DIRECTORY }}"
- run: npm run build
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm ci --prefix "${{ env.WORKING_DIRECTORY }}"
- run: npm run build --prefix "${{ env.WORKING_DIRECTORY }}"

0 comments on commit e0228a7

Please sign in to comment.