From 682c8f1dc4b623b78f3af9d81a657bbf9b4dab4f Mon Sep 17 00:00:00 2001 From: Siddharth Gupta Date: Fri, 9 Feb 2024 21:29:50 -0800 Subject: [PATCH] Fix react app CI workflow --- .github/workflows/{client.yml => react.yml} | 45 +++++---------------- 1 file changed, 10 insertions(+), 35 deletions(-) rename .github/workflows/{client.yml => react.yml} (52%) diff --git a/.github/workflows/client.yml b/.github/workflows/react.yml similarity index 52% rename from .github/workflows/client.yml rename to .github/workflows/react.yml index ad2c302..555de27 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/react.yml @@ -3,35 +3,10 @@ name: Client CI on: push: paths: - - 'client/**.js' - - '.github/workflows/client.yml' + - 'react/**' + - '.github/workflows/react.yml' jobs: - Lint: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [12.x] - - steps: - - name: Git checkout - uses: actions/checkout@v2 - - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - - name: Install ESLint - run: | - cd client - npm install eslint eslint-plugin-react@latest - - - name: Lint code - run: | - cd client - npx eslint --color -c .eslintrc.js src/ - Test: runs-on: ubuntu-latest needs: Lint @@ -50,13 +25,13 @@ jobs: - name: Install dependencies run: | - cd client - npm install + cd react + yarn install - name: Run tests run: | - cd client - npm run test:ci + cd react + yarn test:ci Build: runs-on: ubuntu-latest needs: Test @@ -75,10 +50,10 @@ jobs: - name: Install dependencies run: | - cd client - npm install + cd react + yarn install - name: Build react artifacts run: | - cd client - npm run build + cd react + yarn build