diff --git a/.github/workflows/html-app-branch_and_pr_build.yml b/.github/workflows/html-app-branch_and_pr_build.yml index f852adc3..eac0e473 100644 --- a/.github/workflows/html-app-branch_and_pr_build.yml +++ b/.github/workflows/html-app-branch_and_pr_build.yml @@ -4,6 +4,9 @@ on: [ push, pull_request ] #Add prettier to CI jobs: build: + defaults: + run: + working-directory: ./legacy name: Build JGiven-HTML-App runs-on: ubuntu-latest steps: @@ -14,25 +17,31 @@ jobs: run: yarn build - name: Test run: yarn test -# Sample CI for react apps -# react: -# 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 +# Sample CI for react apps + react: + defaults: + run: + 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: -# 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 \ No newline at end of file + reactChecks: + defaults: + run: + 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 \ No newline at end of file