Skip to content

Refactor scenario overview #182

Refactor scenario overview

Refactor scenario overview #182

name: Yarn CI Cycle
on: [ push, pull_request ]
#Add prettier to CI
jobs:
build:
defaults:
working-directory: ./legacy

Check failure on line 8 in .github/workflows/html-app-branch_and_pr_build.yml

View workflow run for this annotation

GitHub Actions / Yarn CI Cycle

Invalid workflow file

The workflow is not valid. .github/workflows/html-app-branch_and_pr_build.yml (Line: 8, Col: 7): Unexpected value 'working-directory' .github/workflows/html-app-branch_and_pr_build.yml (Line: 22, Col: 7): Unexpected value 'working-directory'
name: Build JGiven-HTML-App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
run: yarn install
- name: Build
run: yarn build
- name: Test
run: yarn test
# Sample CI for react apps
react:
defaults:
working-directory: ./new
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
run: cd client && npm install
- name: Build
run: cd client && npm run build
- name: Test
run: cd client && npm test
reactChecks:
defaults:
working-directory: ./new
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install
run: cd client && npm install
- name: Prettier
run: cd client && npx prettier --check src #probably requires installation
- name: Eslint
run: cd client && npx eslint src --ext .js,.jsx,.ts,.tsx