Skip to content

Lerri-Cofannos is executing app-ci on pull_request at 2c3f4eec6c1bc22813a423bb417002af030bc446 #133

Lerri-Cofannos is executing app-ci on pull_request at 2c3f4eec6c1bc22813a423bb417002af030bc446

Lerri-Cofannos is executing app-ci on pull_request at 2c3f4eec6c1bc22813a423bb417002af030bc446 #133

Workflow file for this run

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