diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..7ae83fb --- /dev/null +++ b/.github/workflows/node.js.yml @@ -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 diff --git a/package.json b/package.json index fde986e..71a3e71 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/hocs/with-auth-guard.js b/src/hocs/with-auth-guard.js index 32a7518..85096c3 100644 --- a/src/hocs/with-auth-guard.js +++ b/src/hocs/with-auth-guard.js @@ -1,5 +1,6 @@ import { AuthGuard } from 'src/guards/auth-guard'; +/* eslint-disable react/display-name */ export const withAuthGuard = (Component) => (props) => (