Skip to content

Commit

Permalink
Merge pull request #9 from Jim-Hodapp-Coaching/jhodapp-patch-1
Browse files Browse the repository at this point in the history
Create node.js.yml build & test CI config
  • Loading branch information
jhodapp authored Nov 29, 2023
2 parents 6ca6eb4 + 84491b1 commit ecc99fe
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI Build & Test

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

jobs:
build:

runs-on: ubuntu-latest

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

steps:
- 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
- run: npm run build --if-present
# TODO: once we have a test runner/framework in place, uncomment this
# - run: npm test
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@
"apexcharts": "3.37.0",
"date-fns": "2.29.3",
"formik": "2.2.9",
"next": "^14.0.3",
"nprogress": "0.2.0",
"prop-types": "15.8.1",
"next": "^14.0.3",
"react": "^18",
"react-apexcharts": "1.4.0",
"react-dom": "^18",
"simplebar-react": "^3.2.1",
"yup": "1.0.0"

},
"devDependencies": {
"@types/node": "^20",
Expand Down
1 change: 1 addition & 0 deletions src/hocs/with-auth-guard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { AuthGuard } from 'src/guards/auth-guard';

/* eslint-disable react/display-name */
export const withAuthGuard = (Component) => (props) => (
<AuthGuard>
<Component {...props} />
Expand Down

0 comments on commit ecc99fe

Please sign in to comment.