mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
* chore: add ci job names This makes them easier to find in the Github UI. * chore: increase ci timeout
44 lines
951 B
YAML
44 lines
951 B
YAML
name: Build and lint web apps
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
branches: ["preview"]
|
|
types: ["opened", "synchronize", "ready_for_review", "review_requested", "reopened"]
|
|
paths:
|
|
- "**.tsx?"
|
|
- "**.jsx?"
|
|
- "**.css"
|
|
- "**.json"
|
|
- "!apps/api/**"
|
|
|
|
jobs:
|
|
build-and-lint:
|
|
name: Build and lint web apps
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 25
|
|
if: |
|
|
github.event.pull_request.draft == false &&
|
|
github.event.pull_request.requested_reviewers != null
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
|
|
- name: Install dependencies
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: Build web apps
|
|
run: yarn run build
|
|
|
|
- name: Lint web apps
|
|
run: yarn run ci:lint
|
|
|
|
|