Skip to content

Refactored code

Refactored code #34

name: Frontend build
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
strategy:
matrix:
node-version: [ 20.x ]
steps:
- uses: actions/checkout@v4
- name: Install Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
cache-dependency-path: ./src/yarn.lock
- name: Install dependencies
run: yarn install
- name: Run ESLint
run: yarn lint
- name: Run Vitest
run: LARAVEL_BYPASS_ENV_CHECK=1 yarn test