From 2c51c328e19f8a1b8200daa003c6c0fc0e060ee4 Mon Sep 17 00:00:00 2001 From: eternaltyro Date: Wed, 17 Apr 2024 08:59:03 +0100 Subject: [PATCH] Add matrix testing with Node LTS --- .github/workflows/frontend_build.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/frontend_build.yml b/.github/workflows/frontend_build.yml index 2a81495b..8c0a977d 100644 --- a/.github/workflows/frontend_build.yml +++ b/.github/workflows/frontend_build.yml @@ -3,8 +3,12 @@ name: Frontend Build on: push: branches: [ master ] + paths: + - 'frontend/**' pull_request: branches: [ master ] + paths: + - 'frontend/**' jobs: Build_On_Ubuntu: @@ -15,15 +19,14 @@ jobs: strategy: matrix: - node-version: [16.14.2] - + node-version: [ 16.14.2, 16, 18, 20 ] steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} @@ -35,4 +38,5 @@ jobs: - name: Build run: | cd frontend/ - npm run build \ No newline at end of file + npm run build +