iachat/.github/workflows/frontend-fe.yml
Gabriel Jablonski e930820f68 ci: update workflow to trigger on fazer-ai/main branch and remove from PRs (#17)
* ci: update workflow to trigger on fazer-ai/main branch and remove from PRs

* ci: update workflows to trigger on fazer-ai/main branch and enable manual dispatch
2025-04-03 23:28:38 -03:00

40 lines
810 B
YAML

name: Frontend Lint & Test
on:
push:
branches:
- fazer-ai/main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: 'pnpm'
- name: Install pnpm dependencies
run: pnpm install --frozen-lockfile
- name: Run eslint
run: pnpm run eslint
- name: Run frontend tests with coverage
run: |
mkdir -p coverage
pnpm run test:coverage