Skip to content

Commit

Permalink
chore(ci): add basic pipeline for ui. Checks for lint, formatting and
Browse files Browse the repository at this point in the history
type errors and makes sure we can build the static frontend assets
  • Loading branch information
pascalbreuninger committed Dec 11, 2024
1 parent 87c59f2 commit 2cba830
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/ui-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: UI CI

on:
workflow_dispatch: {}
pull_request:
branches:
- main
- release-*
paths:
- desktop/

jobs:
check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./desktop
steps:
- name: checkout
uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
with:
node-version: "20"

- name: install dependencies
run: yarn install --frozen-lockfile

- name: lint
run: yarn lint:ci

- name: check format
run: yarn format:check

- name: check types
run: yarn types:check

# This only builds the frontend assets, not the full DevPod Desktop app to make it quicker
- name: build
run: yarn build
3 changes: 2 additions & 1 deletion desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"desktop:build": "tauri build",
"format:check": "prettier --check .",
"format:fix": "prettier --write .",
"types:check": "tsc -p ./tsconfig.json --noEmit"
"types:check": "tsc -p ./tsconfig.json --noEmit",
"lint:ci": "eslint . --ext '.ts,.tsx'"
},
"dependencies": {
"@chakra-ui/icons": "2.1.1",
Expand Down

0 comments on commit 2cba830

Please sign in to comment.