Skip to content

Commit 5bade37

Browse files
committed
Merge branch 'release/1.0.0-beta.5'
2 parents c02741d + 1439e60 commit 5bade37

File tree

127 files changed

+25282
-60935
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+25282
-60935
lines changed

.drone.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/workflows/test-console.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI for Console
5+
6+
on:
7+
push:
8+
branches: [ "develop" ]
9+
pull_request:
10+
branches: [ "develop" ]
11+
12+
defaults:
13+
run:
14+
working-directory: ./console
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
24+
with:
25+
node-version-file: '.nvmrc'
26+
cache: 'npm'
27+
cache-dependency-path: console/package-lock.json
28+
- run: npm ci
29+
- run: npm run lint
30+
- run: npm run build

.github/workflows/test-frontend.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI for Frontend
5+
6+
on:
7+
push:
8+
branches: [ "develop" ]
9+
pull_request:
10+
branches: [ "develop" ]
11+
12+
defaults:
13+
run:
14+
working-directory: ./frontend
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
24+
with:
25+
node-version-file: '.nvmrc'
26+
cache: 'npm'
27+
cache-dependency-path: frontend/package-lock.json
28+
- run: npm ci
29+
- run: npm run lint
30+
- run: npm run build

.github/workflows/test-server.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI for Server
5+
6+
on:
7+
push:
8+
branches: [ "develop" ]
9+
pull_request:
10+
branches: [ "develop" ]
11+
12+
defaults:
13+
run:
14+
working-directory: ./server
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
services:
20+
mysql:
21+
image: mariadb:11.7.2@sha256:310d29fbb58169dcddb384b0ff138edb081e2773d6e2eceb976b3668089f2f84
22+
env:
23+
MARIADB_USER: display
24+
MARIADB_PASSWORD: display
25+
MARIADB_ROOT_PASSWORD: doesntmatter
26+
MARIADB_DATABASE: display
27+
TZ: Europe/Berlin
28+
ports:
29+
- 3306/tcp
30+
options: --health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s --health-retries=3
31+
32+
steps:
33+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
35+
with:
36+
node-version-file: '.nvmrc'
37+
cache: 'npm'
38+
cache-dependency-path: server/package-lock.json
39+
- run: npm ci
40+
- run: npm run lint
41+
- run: npm run compile
42+
- run: npm run jest -- --coverage
43+
env:
44+
MYSQL_URI: mysql://display:[email protected]:${{ job.services.mysql.ports['3306'] }}/display
45+
- name: Upload code coverage to Code Climate
46+
uses: paambaati/codeclimate-action@7c100bd1ed15de0bdee476b38ca759d8c94207b5 # v8.0.0
47+
env:
48+
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
49+
with:
50+
coverageLocations: |
51+
${{github.workspace}}/server/coverage/lcov.info:lcov
52+
53+
- name: Upload coverage reports to Codecov
54+
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
55+
with:
56+
fail_ci_if_error: true
57+
token: ${{ secrets.CODECOV_TOKEN }}
58+
directory: ${{github.workspace}}/server/coverage
59+
flags: server

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.18.3

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
FROM node:lts as build-console
1+
FROM node:20.18.3@sha256:bcf90f85634194bc51e92f8add1221c7fdeeff94b7f1ff360aeaa7498086d641 as build-console
22

33
WORKDIR /home/node/app/console
44
COPY ./console/package.json ./console/package-lock.json /home/node/app/console/
55
RUN npm ci --no-audit
66
COPY ./console /home/node/app/console
77
RUN npm run build
88

9-
FROM node:lts as build-frontend
9+
FROM node:20.18.3@sha256:bcf90f85634194bc51e92f8add1221c7fdeeff94b7f1ff360aeaa7498086d641 as build-frontend
1010

1111
WORKDIR /home/node/app/frontend
1212
COPY ./frontend/package.json ./frontend/package-lock.json /home/node/app/frontend/
1313
RUN npm ci --no-audit
1414
COPY ./frontend /home/node/app/frontend
1515
RUN npm run build
1616

17-
FROM node:lts as build-server
17+
FROM node:20.18.3@sha256:bcf90f85634194bc51e92f8add1221c7fdeeff94b7f1ff360aeaa7498086d641 as build-server
1818

1919
WORKDIR /home/node/app/server
2020
COPY ./server/package.json ./server/package-lock.json /home/node/app/server/
2121
RUN npm ci --no-audit
2222
COPY ./server /home/node/app/server
2323
RUN npm run compile
2424

25-
FROM node:lts
25+
FROM node:20.18.3@sha256:bcf90f85634194bc51e92f8add1221c7fdeeff94b7f1ff360aeaa7498086d641
2626
WORKDIR /home/node/app/
2727
COPY ./server/package.json ./server/package-lock.json /home/node/app/
2828
RUN npm ci --only=production --no-audit

Dockerfile.prebuilt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:lts
1+
FROM node:20.18.3@sha256:bcf90f85634194bc51e92f8add1221c7fdeeff94b7f1ff360aeaa7498086d641
22

33
WORKDIR /home/node/app
44
COPY ./build/package.json ./build/package-lock.json /home/node/app/

console/.eslintrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true
5+
},
6+
"extends": [
7+
"plugin:vue/essential",
8+
"eslint:recommended"
9+
],
10+
"parserOptions": {
11+
"parser": "@babel/eslint-parser"
12+
},
13+
"reportUnusedDisableDirectives": true,
14+
"rules": {
15+
"vue/multi-word-component-names": "off",
16+
"vue/no-mutating-props": "off"
17+
}
18+
}

0 commit comments

Comments
 (0)