* fix(lint): get ci passing again * chore(ci): run lint before build * chore(ci): exclude web app from build check for now The web app takes too long and causes CI to timeout. Once we improve we will reintroduce. * fix: formating of files * fix: adding format to ci --------- Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
51 lines
1 KiB
YAML
51 lines
1 KiB
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: Lint web apps
|
|
run: yarn check:lint
|
|
|
|
- name: Check format
|
|
run: yarn check:format
|
|
|
|
- name: Build apps
|
|
run: yarn build
|