Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ jobs:
name: build-json
path: kompassi-v2-frontend/build.json

# TODO Placeholder for actual tests, so that we can require step "test" to succeed for automerge (backend actually has one)
test:
runs-on: ubuntu-latest
steps:
- run: "true"

deploy_staging:
runs-on: qb-arc-runners
needs: build
Expand Down
13 changes: 2 additions & 11 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,14 @@ jobs:
- uses: actions/setup-python@v7
with:
python-version-file: ".python-version"

- run: uv sync --locked
- uses: j178/prek-action@v3.0.0

eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7

- uses: actions/setup-node@v7
with:
node-version: 24
cache: npm
cache-dependency-path: kompassi-v2-frontend/package-lock.json

- run: uv sync --locked
- run: npm ci
working-directory: kompassi-v2-frontend

- run: npx eslint src
working-directory: kompassi-v2-frontend
- uses: j178/prek-action@v3.0.0
7 changes: 7 additions & 0 deletions kompassi-v2-frontend/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ repos:
rev: v3.9.6
hooks:
- id: prettier

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.39.1
hooks:
- id: eslint
files: \.[jt]sx?$
types: [file]