Skip to content

Fix react app CI workflow #1

Fix react app CI workflow

Fix react app CI workflow #1

Workflow file for this run

name: Client CI
on:
push:
paths:
- 'react/**'
- '.github/workflows/react.yml'
jobs:
Test:

Check failure on line 10 in .github/workflows/react.yml

View workflow run for this annotation

GitHub Actions / Client CI

Invalid workflow file

The workflow is not valid. .github/workflows/react.yml (Line: 10, Col: 5): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
needs: Lint
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 dependencies
run: |
cd react
yarn install
- name: Run tests
run: |
cd react
yarn test:ci
Build:
runs-on: ubuntu-latest
needs: Test
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 dependencies
run: |
cd react
yarn install
- name: Build react artifacts
run: |
cd react
yarn build