Skip to content

Commit

Permalink
cleanup ui code, add ui ci (#6)
Browse files Browse the repository at this point in the history
* update adr

* wip

* wip

* wip

* cleanup

* format

* wip

* revert formatting of shadcn-svelte components

* setup node

* ui: formatting ignore components

* wip

* wip

* dark

* wip

* wip

* wip

* fix linter errors
  • Loading branch information
felixguendling authored Sep 26, 2024
1 parent d5deeaf commit 890ebab
Show file tree
Hide file tree
Showing 41 changed files with 1,038 additions and 1,475 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,30 @@ concurrency:
cancel-in-progress: true

jobs:
ui:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Dependencies
working-directory: ui
run: npm install -f

- name: Code Lint
working-directory: ui
run: npm run lint

- name: Svelte Check
working-directory: ui
run: npm run check

- name: Build
working-directory: ui
run: npm run build

formatting:
runs-on: ubuntu-latest
container: ghcr.io/motis-project/docker-cpp-build
Expand Down Expand Up @@ -110,7 +134,7 @@ jobs:

# ==== RESTORE CACHE ====
- name: Restore buildcache Cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore-buildcache
with:
path: ${{ github.workspace }}/.buildcache
Expand All @@ -121,7 +145,7 @@ jobs:
buildcache-${{ matrix.config.preset }}-
- name: Dependencies Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/deps
key: deps-${{ hashFiles('.pkg') }}
Expand All @@ -145,7 +169,7 @@ jobs:
# ==== SAVE CACHE ====
- name: Save buildcache cache
if: always()
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/.buildcache
key: ${{ steps.restore-buildcache.outputs.cache-primary-key }}
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions ui/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ node_modules
pnpm-lock.yaml
package-lock.json
yarn.lock

# Generated code
src/lib/openapi

# shadcn-svelte
src/lib/components
2 changes: 2 additions & 0 deletions ui/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
pnpm-lock.yaml
package-lock.json
yarn.lock
src/lib/openapi/**
src/lib/components/**
Loading

0 comments on commit 890ebab

Please # to comment.