Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bklingen-calpoly committed Apr 23, 2024
2 parents 05b40bb + a1e6e86 commit 7926f4d
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/frontend-react-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
# add comment to redrive actions
# update for CI test

name: Frontend React CI

on:
push:
branches: [main, with-subfolder, ci]
pull_request:
branches: [main, with-subfolder, ci]

defaults:
run:
working-directory: frontend

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: "frontend/package-lock.json"
- run: npm ci
working-directory: frontend
- run: npm run build --if-present
working-directory: frontend
- run: npm test
working-directory: frontend

0 comments on commit 7926f4d

Please sign in to comment.