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
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
push:
branches: [master]
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
name: Build & test
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v7

- name: Set up JDK 25
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '25'

- name: Set up Gradle
uses: gradle/actions/setup-gradle@v6
with:
validate-wrappers: true

- name: Build (compile all modules + run unit tests)
run: ./gradlew build --stacktrace

- name: Assemble installDist
run: ./gradlew installDist --stacktrace

- name: Upload test reports
if: failure()
uses: actions/upload-artifact@v7
with:
name: test-reports
path: |
**/build/reports/tests/**
**/build/test-results/**
if-no-files-found: ignore
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[versions]
xtc = "0.4.4-SNAPSHOT"
node = "7.1.0"
nodejs = "22.21.0"
npm = "11.6.2"
nodejs = "22.23.1"
npm = "11.18.0"
yarn = "1.22.22"

[plugins]
Expand Down
7 changes: 0 additions & 7 deletions platformUI/gui/.eslintignore

This file was deleted.

66 changes: 0 additions & 66 deletions platformUI/gui/.eslintrc.cjs

This file was deleted.

51 changes: 51 additions & 0 deletions platformUI/gui/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import globals from 'globals'
import pluginVue from 'eslint-plugin-vue'
import prettier from 'eslint-config-prettier'

// Flat config (ESLint 9+). Replaces the legacy .eslintrc.cjs / .eslintignore,
// which ESLint 9 no longer reads and eslint-plugin-vue 10 no longer ships
// legacy shareable configs for.
export default [
{
// Migrated from .eslintignore
ignores: [
'dist/**',
'src-capacitor/**',
'src-cordova/**',
'.quasar/**',
'node_modules/**',
'quasar.config.*.temporary.compiled*'
]
},

// Vue 3 "essential" rules; also wires vue-eslint-parser for *.vue files.
...pluginVue.configs['flat/essential'],

{
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
globals: {
...globals.browser,
...globals.node,
ga: 'readonly',
cordova: 'readonly',
__statics: 'readonly',
__QUASAR_SSR__: 'readonly',
__QUASAR_SSR_SERVER__: 'readonly',
__QUASAR_SSR_CLIENT__: 'readonly',
__QUASAR_SSR_PWA__: 'readonly',
Capacitor: 'readonly',
chrome: 'readonly'
}
},
rules: {
'prefer-promise-reject-errors': 'off',
// allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
}
},

// Disable ESLint rules that conflict with Prettier; must stay last.
prettier
]
7 changes: 4 additions & 3 deletions platformUI/gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"private": true,
"scripts": {
"preinstall": "npx only-allow yarn",
"lint": "eslint --ext .js,.vue ./",
"lint": "eslint .",
"format": "prettier --write \"**/*.{js,vue,scss,html,md,json}\" --ignore-path .gitignore",
"test": "echo \"No test specified\" && exit 0",
"dev": "quasar dev",
Expand All @@ -18,7 +18,7 @@
"axios": "^1.2.1",
"node": "^24.8.0",
"pinia": "^3.0.3",
"quasar": "2.18.5",
"quasar": "2.21.1",
"vue": "^3.0.0",
"vue-router": "^4.0.0",
"yarn": "^1.22.21"
Expand All @@ -30,7 +30,8 @@
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-vue": "^10.5.0",
"postcss": "^8.4.14",
"prettier": "^3.6.2"
"prettier": "^3.6.2",
"vue-eslint-parser": "^10.4.1"
},
"engines": {
"node": ">=22.16.0",
Expand Down
1 change: 0 additions & 1 deletion platformUI/gui/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
// https://github.com/michael-ciniawsky/postcss-load-config

module.exports = {
Expand Down
2 changes: 0 additions & 2 deletions platformUI/gui/quasar.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-env node */

/*
* This file runs in a Node context (it's NOT transpiled by Babel), so use only
* the ES6 features that are supported by your Node version. https://node.green/
Expand Down
Loading