Skip to content

Commit

Permalink
Feat/add apps
Browse files Browse the repository at this point in the history
* feat: add frontend apps

* feat: add apps

* feat: add digiwf-api

* fix: init file input migration

* feat: add multi file input

* chore: build pipelines

* chore: build apps

* fix: cache dependency path
  • Loading branch information
dominikhorn93 authored Aug 30, 2022
1 parent 33631d4 commit eef5229
Show file tree
Hide file tree
Showing 117 changed files with 39,995 additions and 8 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-apps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: build apps

# For now we test the frontend by just building it, in the future tests should be run here

on:
push:
branches:
- '**'
paths:
- 'digiwf-apps/**'

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./digiwf-apps
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
cache-dependency-path: "./digiwf-apps/package-lock.json"
- run: npm run init
- run: npm run build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build and test
name: build services

on: [ push ]

Expand Down Expand Up @@ -31,4 +31,4 @@ jobs:
java-version: '11'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
run: mvn --batch-mode --update-snapshots verify
27 changes: 27 additions & 0 deletions .github/workflows/release-apps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: release services

# Run workflow on commits to the `main` branch
on:
push:
tags:
- 'apps_*.*.*'

jobs:
release-apps:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./digiwf-apps
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
cache-dependency-path: "./digiwf-apps/package-lock.json"
- run: npm install && lerna bootstrap --ci
- run: npm run build
- run: lerna publish from-package --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Release
name: release services

# Run workflow on commits to the `main` branch
on:
push:
tags:
- '*'
- 'core_*.*.*'

jobs:
release:
release-services:
runs-on: ubuntu-18.04
steps:
- name: Check out Git repository
Expand All @@ -20,7 +20,7 @@ jobs:

- name: Remove SNAPSHOT
run: |
mvn versions:set --batch-mode -DremoveSnapshot -DprocessAllModules
mvn versions:set --batch-mode -DremoveSnapshot -DprocessAllModules
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/snapshot-release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Snapshot Release
name: snapshot release services

# Run workflow on commits to the `main` branch
on: workflow_dispatch
Expand Down Expand Up @@ -49,4 +49,4 @@ jobs:
with:
context: ./digiwf-engine/digiwf-engine-service
push: true
tags: itatm/digiwf-engine-service:${{ env.RELEASE_VERSION }}
tags: itatm/digiwf-engine-service:${{ env.RELEASE_VERSION }}
11 changes: 11 additions & 0 deletions digiwf-apps/lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"packages": [
"packages/components/digiwf-form-renderer",
"packages/components/digiwf-form-builder",
"packages/components/digiwf-form-builder-settings",
"packages/components/digiwf-engine-api-internal",
"packages/components/digiwf-multi-file-input",
"packages/apps/digiwf-forms-example"
],
"version": "0.17.0"
}
Loading

0 comments on commit eef5229

Please sign in to comment.