mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2025-12-30 13:19:44 -06:00
* fix: add more path filters and remove check path action * feat: only run on changes to pyproject.toml / package.json * fix: try bumping golangci-lint * fix: golang ci config * fix: upgrade pre commit ver * Revert "fix: upgrade pre commit ver" This reverts commit9cdbfc68da. * Revert "fix: golang ci config" This reverts commit6b27c1abd0. * Revert "fix: try bumping golangci-lint" This reverts commitf7bfcb6963.
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
name: "frontend / app"
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "frontend/app/**"
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9.15.4
|
|
run_install: false
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache: pnpm
|
|
cache-dependency-path: frontend/app/pnpm-lock.yaml
|
|
- name: Install dependencies
|
|
working-directory: frontend/app
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Lint
|
|
working-directory: frontend/app
|
|
run: npm run lint:check
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9.15.4
|
|
run_install: false
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
cache: pnpm
|
|
cache-dependency-path: frontend/app/pnpm-lock.yaml
|
|
- name: Install dependencies
|
|
working-directory: frontend/app
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Build
|
|
working-directory: frontend/app
|
|
run: npm run build
|