Skip to content

Lerri-Cofannos is executing app-ci on pull_request at 4a6d11f6ddebc0126c19a1004112837ae380351d #134

Lerri-Cofannos is executing app-ci on pull_request at 4a6d11f6ddebc0126c19a1004112837ae380351d

Lerri-Cofannos is executing app-ci on pull_request at 4a6d11f6ddebc0126c19a1004112837ae380351d #134

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