Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kodex #92

Open
wants to merge 111 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 107 commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
c506079
common & scanner modules
mpetuska May 16, 2021
5a5e24f
common & scanner modules
mpetuska May 16, 2021
d67ef03
Restructuring
mpetuska May 16, 2021
99efad3
MDC Buttons
mpetuska May 23, 2021
2850035
Version bump and deprecation cleanup
mpetuska Aug 3, 2021
6ca63ea
Resolving merge conflicts
mpetuska Aug 3, 2021
ee72948
MDC Cards and TopBar
mpetuska Aug 5, 2021
c12d34d
MDC Typography
mpetuska Aug 7, 2021
b557be2
MDC TopAppBar rework and extended docs links
mpetuska Aug 8, 2021
2bcb9e3
MDC Layout Grid
mpetuska Aug 8, 2021
91f994e
MDC Drawer
mpetuska Aug 8, 2021
021e753
Bump cloudflare/cloudflare from 2.24.0 to 2.25.0 in /infra (#27)
dependabot[bot] Aug 9, 2021
6bdcd2f
Bump cloudflare/cloudflare from 2.24.0 to 2.25.0 in /infra (#28)
dependabot[bot] Aug 11, 2021
67507b0
Version bumps and general code cleanup
mpetuska Sep 9, 2021
193ca7d
MDCLinearProgress
mpetuska Sep 14, 2021
d2578a9
MDCTextField 1/2
mpetuska Sep 15, 2021
9bfacb0
MDCTextField 1/2
mpetuska Sep 15, 2021
6b6ed82
Library loading
mpetuska Sep 15, 2021
06afa65
CBOR
mpetuska Sep 15, 2021
7a3031a
Merge remote-tracking branch 'origin/feature/compose' into feature/co…
mpetuska Sep 20, 2021
f3badbd
MDCTextArea finalised
mpetuska Sep 26, 2021
a74da47
MDCCheckbox & MDCFormField
mpetuska Sep 26, 2021
9e537c9
MDCList
mpetuska Oct 4, 2021
c73d7e3
Navigation
mpetuska Oct 7, 2021
f25de73
MDCNavList
mpetuska Oct 7, 2021
01def7d
Module reshuffling and formatting
mpetuska Oct 29, 2021
ce61d48
KotlinTarget serialization rework
mpetuska Nov 1, 2021
b0b0bdb
Search permalinks
mpetuska Nov 4, 2021
c956700
Create pr.yml
mpetuska Feb 1, 2022
eba8784
Merge branch 'master' into feature/compose
mpetuska Feb 1, 2022
b079660
kmdc dependency
mpetuska May 28, 2022
e803bfa
disable hooks
mpetuska May 28, 2022
73f185f
disable hooks
mpetuska May 28, 2022
fdde77a
disable hooks
mpetuska May 28, 2022
a904c13
disable hooks
mpetuska May 28, 2022
aae5729
test fixes
mpetuska May 28, 2022
c3b6f3b
test fixes
mpetuska May 28, 2022
c8e6018
ktor 2.0
mpetuska Jun 2, 2022
83292ad
cli rework
mpetuska Jun 3, 2022
297d8a1
server rework
mpetuska Jun 4, 2022
b3deb78
KotlinTarget enchancement
mpetuska Jun 4, 2022
018bb78
KotlinTarget enchancement
mpetuska Jun 4, 2022
5752e91
test utils
mpetuska Jun 4, 2022
80ad027
test utils
mpetuska Jun 4, 2022
c39d66b
kodex scan gh action
mpetuska Jun 5, 2022
c4e53a1
kodex scan gh action
mpetuska Jun 5, 2022
807f1c7
kodex scan gh action
mpetuska Jun 5, 2022
9b250c3
kodex scan gh action
mpetuska Jun 5, 2022
17756d1
kodex scan gh action
mpetuska Jun 5, 2022
3212f4a
kodex scan gh action
mpetuska Jun 5, 2022
40d7b1a
Merge branch 'master' into kodex
mpetuska Jun 5, 2022
0dd2629
kodex scan gh action
mpetuska Jun 5, 2022
8b9cda1
kodex scan gh action
mpetuska Jun 5, 2022
e5174f1
kodex scan gh action
mpetuska Jun 5, 2022
3b07860
kodex scan gh action
mpetuska Jun 5, 2022
1943dd5
kodex scan gh action
mpetuska Jun 5, 2022
8adc484
Merge remote-tracking branch 'origin/master' into kodex
mpetuska Jun 5, 2022
f885355
kodex scan gh action
mpetuska Jun 5, 2022
67bf8b0
Merge branch 'master' into kodex
mpetuska Jun 5, 2022
284b004
Merge branch 'master' into kodex
mpetuska Jun 5, 2022
22b045b
kodex scan gh action
mpetuska Jun 5, 2022
e7b1e50
kodex scan gh action
mpetuska Jun 5, 2022
a434c06
kodex scan gh action
mpetuska Jun 5, 2022
1caf4b6
kodex scan gh action
mpetuska Jun 5, 2022
2515f01
kodex scan gh action
mpetuska Jun 5, 2022
4dd7efa
kodex scan gh action
mpetuska Jun 5, 2022
175b68d
kodex scan gh action
mpetuska Jun 5, 2022
177ae50
kodex scan gh action
mpetuska Jun 5, 2022
0dc6834
kodex scan gh action
mpetuska Jun 5, 2022
9445d26
cli scan filtering expansion
mpetuska Jun 5, 2022
d5a2072
cli scan filtering expansion
mpetuska Jun 5, 2022
4ffa11d
cli scan filtering expansion
mpetuska Jun 5, 2022
7fd648f
cli scan filtering expansion
mpetuska Jun 5, 2022
d03f917
cli scan filtering expansion
mpetuska Jun 5, 2022
6546d06
cli scan filtering expansion
mpetuska Jun 5, 2022
3adb7b6
cli scan filtering expansion
mpetuska Jun 5, 2022
3f98864
cli scan filtering expansion
mpetuska Jun 5, 2022
3b518ec
cli scan filtering expansion
mpetuska Jun 5, 2022
6882f6a
cli scan filtering expansion
mpetuska Jun 5, 2022
1f26a1f
cli scan filtering expansion
mpetuska Jun 5, 2022
a3c8aa7
cli scan filtering expansion
mpetuska Jun 5, 2022
1d432ce
IO context switching
mpetuska Jun 5, 2022
6b18dc8
http avoidance
mpetuska Jun 6, 2022
a819c9a
http avoidance
mpetuska Jun 6, 2022
c4ceadb
http avoidance
mpetuska Jun 6, 2022
944e069
http avoidance
mpetuska Jun 6, 2022
3d01cd5
http avoidance
mpetuska Jun 6, 2022
2cc1dc2
exclusions
mpetuska Jun 6, 2022
ac97200
exclusions
mpetuska Jun 6, 2022
95b3907
counting pages
mpetuska Jun 6, 2022
1da29e4
counting pages
mpetuska Jun 6, 2022
d46ff05
list retry
mpetuska Jun 6, 2022
12e8134
list retry
mpetuska Jun 6, 2022
3adcfb6
restoring client abstraction
mpetuska Jun 6, 2022
a221cef
further split
mpetuska Jun 6, 2022
3a91311
further split
mpetuska Jun 6, 2022
79ef9a9
handle unspecified js backends
mpetuska Jun 6, 2022
75269ea
handle unspecified js backends
mpetuska Jun 6, 2022
7d34f79
wasm target!!!
mpetuska Jun 6, 2022
8474b99
global native targets
mpetuska Jun 10, 2022
df4bfd9
exceptions
mpetuska Jun 13, 2022
1b54585
exceptions
mpetuska Jun 14, 2022
73a38d1
Introducing klip
mpetuska Jun 22, 2022
6f4267c
..
mpetuska Jun 24, 2022
5ca5cdb
..
mpetuska Jun 25, 2022
89fb17a
..
mpetuska Jun 25, 2022
fef6640
Serialization fix
mpetuska Jul 21, 2022
ff7f401
Android module
mpetuska Feb 11, 2023
aa808ce
fix js web server
mpetuska Feb 11, 2023
530575c
version catalogs migration
mpetuska Jul 6, 2023
4ab5716
kmp view model
mpetuska Jul 7, 2023
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
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ root = true

[*]
indent_size = 2
continuation_indent_size = 4
ij_kotlin_name_count_to_use_star_import = unset
continuation_indent_size = 2
ij_kotlin_name_count_to_use_star_import = 5
13 changes: 13 additions & 0 deletions .fleet/run.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"configurations": [
{
"type": "gradle",
"name": "Run CLI",
"environment": {}, // optional
"dependsOn": [], // optional
"tasks": [":app:cli:jvmRun"],
"args": ["--args='-h'"], // optional
"initScripts": {}, // optional
}
]
}
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @mpetuska
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
directory: "/.github/workflows"
schedule:
interval: "daily"
interval: "monthly"
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
interval: "monthly"
- package-ecosystem: "terraform"
directory: "/infra"
schedule:
interval: "daily"
interval: "monthly"
68 changes: 68 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Check
defaults:
run:
shell: bash

on:
push:
branches:
- master
workflow_dispatch:
workflow_call:

jobs:
check:
name: Check on ubuntu-latest
runs-on: ubuntu-latest
env:
GRADLE_OPTS: "-Dorg.gradle.daemon=true"
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 11

- name: Restore Gradle cache
id: cache
uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.gradle/yarn
~/.gradle/nodejs
~/.konan
~/.cache/yarn
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle-

- name: Gradle Check
run: ./gradlew detektAll check -x detekt --scan

- name: Make artifact location URIs relative
if: ${{ always() }}
continue-on-error: true
run: |
cp ${{ github.workspace }}/build/reports/detekt/detekt.sarif ${{ github.workspace }}/detekt.sarif.json
echo "$(
jq \
--arg github_workspace ${{ github.workspace }} \
'. | ( .runs[].results[].locations[].physicalLocation.artifactLocation.uri |= if test($github_workspace) then .[($github_workspace | length | . + 1):] else . end )' \
${{ github.workspace }}/detekt.sarif.json
)" > ${{ github.workspace }}/detekt.sarif.json

- uses: github/codeql-action/upload-sarif@v2
if: ${{ always() }}
with:
sarif_file: ${{ github.workspace }}/detekt.sarif.json
checkout_path: ${{ github.workspace }}

- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: reports-${{ runner.os }}
path: |
**/build/reports
detekt.sarif.json
103 changes: 0 additions & 103 deletions .github/workflows/detekt-analysis.yml

This file was deleted.

12 changes: 10 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@ name: PR CI/CD

on:
pull_request:
types: [opened, synchronize, reopened, closed]
types: [ opened, synchronize, reopened, closed ]
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
check:
uses: ./.github/workflows/check.yml

build:
needs: [ check ]
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
name: Build App
runs-on: ubuntu-latest
Expand Down Expand Up @@ -36,7 +44,7 @@ jobs:
path: app/client/build/dist/js/WEB-INF/
name: static-web-app
if-no-files-found: error

deploy:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
name: Deploy Staging
Expand Down
27 changes: 21 additions & 6 deletions .github/workflows/release-kodex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,22 @@ name: Release Kodex

on:
workflow_dispatch:
push:
branches:
- kodex

concurrency:
group: kodex
cancel-in-progress: false

jobs:
# check:
# uses: ./.github/workflows/check.yml

build:
name: Build Apps
runs-on: ubuntu-latest
environment: kodex
env:
REGISTRY: ghcr.io
steps:
Expand Down Expand Up @@ -57,15 +68,19 @@ jobs:
# add_git_labels: true
# tags: latest

- name: Build CLI Docker image & push to GitHub Packages
uses: docker/build-push-action@v5
- name: Login to DockerHub
uses: docker/login-action@v2
with:
directory: ./app/cli/
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ github.token }}
registry: ${{ env.REGISTRY }}
image: ${{ env.REGISTRY }}/${{ github.repository }}/kodex/cli
addLatest: true

- name: Build CLI Docker image & push to GitHub Packages
uses: docker/build-push-action@v3
with:
context: ./app/cli/
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}/kodex/cli:latest

# deploy-Infrastructure:
# runs-on: ubuntu-latest
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ on:
types: [ created ]

jobs:
check:
uses: ./.github/workflows/check.yml

build:
name: Build App
runs-on: ubuntu-latest
needs: [ check ]
steps:
- uses: actions/[email protected]
- name: Restore Gradle cache
Expand All @@ -32,29 +36,29 @@ jobs:
uses: actions/upload-artifact@v2
id: upload
with:
path: app/build/dist/WEB-INF
path: app/client/build/dist/js/WEB-INF/
name: static-web-app
if-no-files-found: error
- name: Build App Docker image & push to GitHub Packages
- name: Build Server Docker image & push to GitHub Packages
uses: docker/build-push-action@v1
with:
path: app
path: app/server/
username: ${{ github.actor }}
password: ${{ github.token }}
registry: docker.pkg.github.com
repository: mpetuska/kamp/app
repository: mpetuska/kamp/server
tag_with_ref: true
tag_with_sha: true
add_git_labels: true
tags: latest
- name: Build Scanner Docker image & push to GitHub Packages
- name: Build CLI Docker image & push to GitHub Packages
uses: docker/build-push-action@v1
with:
path: scanner
path: app/cli/
username: ${{ github.actor }}
password: ${{ github.token }}
registry: docker.pkg.github.com
repository: mpetuska/kamp/scanner
repository: mpetuska/kamp/cli
tag_with_ref: true
tag_with_sha: true
add_git_labels: true
Expand Down Expand Up @@ -94,7 +98,7 @@ jobs:
env:
TF_VAR_docker_registry_username: ${{ secrets.GH_PKG_USER }}
TF_VAR_docker_registry_password: ${{ secrets.GH_PKG_PASSWORD }}
TF_VAR_docker_image_tag: docker.pkg.github.com/mpetuska/kamp/app:sha-${{ steps.short-sha.outputs.sha }}
TF_VAR_docker_image_tag: docker.pkg.github.com/mpetuska/kamp/server:sha-${{ steps.short-sha.outputs.sha }}
TF_VAR_api_admin_user: ${{ secrets.API_ADMIN_USER }}
TF_VAR_api_admin_password: ${{ secrets.API_ADMIN_PASSWORD }}

Expand All @@ -119,6 +123,6 @@ jobs:
uses: Azure/[email protected]
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APP_API_TOKEN }}
repo_token: ${{ github.token }} # Used for Github integrations (i.e. PR comments)
repo_token: ${{ github.token }}
action: "upload"
app_location: "/dist"
Loading