[UXE-5924] chore: implements lint workflow #2
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: Run Linters | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- dev | |
env: | |
HUSKY: 0 | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
container: | |
image: node:18-alpine3.18 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install SO deps | |
run: apk add curl bash | |
- uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install packages | |
run: yarn ci | |
- name: Build application | |
run: yarn prod | |
- name: Run eslint | |
run: yarn lint |