Skip to content

Commit

Permalink
Update to dqlang 3 (#79)
Browse files Browse the repository at this point in the history
* Add TypeScript

* Added Basic domainstory-types for dqlang3

* Added basic domainstory-types from dqlang3

* Migrate DomainStory Edges & Notes

* Migrate RQA & LoadTestSpecifier

* Migrate RQA Explorer

* Refactor Input Components

* Refactor LoadTestSpecifier

* Compiles

* added tokone to build action step

* Add ResilienceTestSpecifier

* Add CreateResilienceTestDto

* Make activity_id optional when creating ResilienceTests

* Add new stimulus_types and resilience test parameters

* Remove Accuracy from ResilienceTest

* Fixed Npm build

* Update dagrejs

* Fix DomainStory graph and support multiple WorkObjects per Activity

* Fixed missing logos for LeasingNinja Domain Story.

* Added activites for LeasingNinja Domain Story.

* Fix bug of constantly rerendering.

* Add ResilienceTests to RQAExplorer

* Add white background to icons in dark mode

* Replace invalid WorkObject in Example DomainStory

* switched to nextjs

* refactor to kotlin and dqlang 3.0

* deleted .ds_store files

* changed dockerfile to file

* dqlang3.0

* working load test

* cleanup and new github action

* adjusted some types

* fix type in load test specs

* fixed backend not connected

---------

Co-authored-by: Julian Brott <julian@brott.io>
Co-authored-by: Levin Kerschberger <levinkerschberger@novatec-gmbh.de>
Co-authored-by: levinkerschberger <126667618+levinkerschberger@users.noreply.github.com>
Co-authored-by: Henning Möllers <LeHenningo@users.noreply.github.com>
Co-authored-by: Jens Plüddemann <jens.plueddemann@novatec-gmbh.de>
  • Loading branch information
6 people committed Jul 18, 2024
1 parent 4812039 commit 19c544f
Show file tree
Hide file tree
Showing 248 changed files with 12,220 additions and 11,203 deletions.
20 changes: 16 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
node_modules /
dist
test.json
node_modules/
old/
.github/
.devenv/
.direnv/
.next/
doc/
screenshots/
.envrc
.gitignore
.templatesyncignore
docker-compose.yml
Dockerfile
npm - debug.log
flake.lock
flake.nix
LICENSE
*.md
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]

# Change these settings to your own preference
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
VITE_BACKEND_URL=http://localhost:8099
DQAPI_HOST=localhost:8099
DQTRANSLATOR_HOST=localhost:8080
10 changes: 10 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi

watch_file flake.nix
watch_file flake.lock
if ! use flake . --impure
then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi
62 changes: 0 additions & 62 deletions .github/workflows/build.yml

This file was deleted.

134 changes: 134 additions & 0 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
name: Create and publish a Docker image

on:
push:
branches: ["**"] # run for any commit or tag push on any branch
tags-ignore: ["v**"] # reserve v* tags for releases
pull_request:
types: [opened, ready_for_review] # only trigger when PR is opened or set on ready_for_review
release:
types: [published] # will use tag name regardless of naming

permissions:
contents: read
packages: write

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
registry:
- name: ghcr.io
user: ${{ github.repository_owner }}
secret: GITHUB_TOKEN
platform: [linux/amd64, linux/arm64]
image:
- name: dqualizer/dqanalyzer2

steps:
- name: Prepare
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image.name }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ matrix.registry.name }}
username: ${{ matrix.registry.user }}
password: ${{ secrets[matrix.registry.secret] }}

- name: Build and push by digest
id: build
uses: docker/build-push-action@v6
with:
target: runtime
platforms: ${{ matrix.platform }}
build-args: |
GITHUB_USER=${{ github.repository_owner }}
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
outputs: type=image,name=${{ matrix.registry.name }}/${{ matrix.image.name }},push-by-digest=true,name-canonical=true,push=true

- name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

merge:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
registry:
- name: ghcr.io
user: ${{ github.repository_owner }}
secret: GITHUB_TOKEN
image:
- name: dqualizer/dqanalyzer2

needs:
- build
steps:
- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.registry.name }}/${{ matrix.image.name }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ matrix.registry.name }}
username: ${{ matrix.registry.user }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ matrix.registry.name }}/${{ matrix.image.name }}@sha256:%s ' *)
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ matrix.registry.name }}/${{ matrix.image.name }}:${{ steps.meta.outputs.version }}
63 changes: 42 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,45 @@
# Logs
logs
*.log
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

.direnv
.devenv

old/

.idea/

**/.DS_Store
17 changes: 0 additions & 17 deletions Beispiel 7 - Einlasskontrolle (E-Ticket).json

This file was deleted.

Loading

0 comments on commit 19c544f

Please sign in to comment.