Skip to content

feat(event.ticketSearch): allow coupon by param or by form #196

feat(event.ticketSearch): allow coupon by param or by form

feat(event.ticketSearch): allow coupon by param or by form #196

name: Lint and Typecheck
on:
push:
branches:
- main
pull_request:
jobs:
linting-and-typechecking:
runs-on: ubuntu-latest
name: Linting and Typechecking
# Considerar Mover clone/setup/caches a un composite action 🙏
steps:
- name: ⏳ Cloning repo
uses: actions/checkout@v3
- name: ⬢ Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: 📦 Download Cached Package Dependencies
uses: actions/cache@v3
env:
cache-name: NPM
with:
path: ~/.npm
key: CACHE-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }}
- name: 📦 Download Cached Eslint output
uses: actions/cache@v3
env:
cache-name: ESLINT
with:
path: .eslintcache
key: CACHE-${{ env.cache-name }}-${{ hashFiles('.eslintcache') }}
- name: 📦 Download Cached Typescript output
uses: actions/cache@v3
env:
cache-name: TYPESCRIPT
with:
path: tsconfig.tsbuildinfo
key: CACHE-${{ env.cache-name }}-${{ hashFiles('tsconfig.tsbuildinfo') }}
- name: 📥 Install dependencies
run: npm ci --prefer-offline --no-audit --legacy-peer-deps --cache ~/.npm
- name: Run Prettier
run: npm run prettier:ci
- name: Run Linter
run: npm run lint
- name: Run Typecheck
run: npm run typecheck