Skip to content

Commit

Permalink
Activate github checks
Browse files Browse the repository at this point in the history
  • Loading branch information
l-1squared committed Sep 27, 2023
1 parent 053aa3f commit 92ed56c
Showing 1 changed file with 27 additions and 21 deletions.
48 changes: 27 additions & 21 deletions .github/workflows/html-app-branch_and_pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on: [ push, pull_request ]
#Add prettier to CI
jobs:
build:
defaults:
working-directory: ./legacy
name: Build JGiven-HTML-App
runs-on: ubuntu-latest
steps:
Expand All @@ -14,25 +16,29 @@ 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:
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
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

0 comments on commit 92ed56c

Please sign in to comment.