Lerri-Cofannos is executing app-ci on pull_request at 99f6de61937b9c2fb282d03bb53a986b98eb46b3 #126
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: app-ci | |
run-name: ${{ github.actor }} is executing ${{ github.workflow }} on ${{ github.event_name }} at ${{ github.sha }} | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- front/** | |
defaults: | |
run: | |
working-directory: front | |
jobs: | |
app-ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v3 | |
- name: Ensure npm is not used | |
run: | | |
if [ -f "package-lock.json" ] ; then | |
echo "package-lock.json found! Make sure you are using yarn to manage dependencies, not npm." | |
exit 1 | |
fi | |
- name: Setup Node 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: --cwd front install # front/yarn install | |
- name: Check linting | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: --cwd front lint # front/yarn lint | |
- name: Format code | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: --cwd front format # front/yarn format | |
- name: Check tests | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: --cwd front test # front/yarn test | |
- name: Check build | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: --cwd front test # front/yarn build | |