chore(JGIVEN-3): Use npm instead of yarn in workflow #415
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Yarn CI Cycle | |
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: | |
- uses: actions/checkout@v3 | |
- name: Install | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Test | |
run: npm run test | |
# Sample CI for react apps | |
react: | |
defaults: | |
run: | |
working-directory: ./new | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Test | |
run: npm test | |
reactChecks: | |
defaults: | |
run: | |
working-directory: ./new | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install | |
run: npm install | |
- name: Prettier | |
run: npx prettier --check src #probably requires installation | |
- name: Eslint | |
run: npx eslint src --ext .js,.jsx,.ts,.tsx |