Skip to content

Commit

Permalink
Fix react app CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
siddg97 committed Feb 10, 2024
1 parent d464efd commit 682c8f1
Showing 1 changed file with 10 additions and 35 deletions.
45 changes: 10 additions & 35 deletions .github/workflows/client.yml → .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 682c8f1

Please sign in to comment.