Skip to content

Commit

Permalink
Merge pull request #168 from camunda/alpha
Browse files Browse the repository at this point in the history
Alpha
  • Loading branch information
jwulf authored May 24, 2024
2 parents cbd7756 + d6acdfd commit 1359c6d
Show file tree
Hide file tree
Showing 37 changed files with 1,443 additions and 705 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version
node-version: "20" # Specify a Node.js version

- name: Install dependencies
run: npm install
Expand Down
122 changes: 63 additions & 59 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version
node-version: "20" # Specify a Node.js version

- name: Install dependencies
run: npm install
Expand All @@ -24,26 +24,26 @@ jobs:
run: |
npm run test
unit-tests-windows:
runs-on: windows-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
# unit-tests-windows:
# runs-on: windows-2019
# steps:
# - name: Check out the repo
# uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version
# - name: Use Node.js
# uses: actions/setup-node@v4
# with:
# node-version: "20" # Specify a Node.js version

- name: Install dependencies
run: npm install
# - name: Install dependencies
# run: npm install

- name: Build
run: npm run build
# - name: Build
# run: npm run build

- name: Run Unit Tests
run: |
npm run test
# - name: Run Unit Tests
# run: |
# npm run test

local_integration:
runs-on: ubuntu-latest
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version
node-version: "20" # Specify a Node.js version

- name: Install dependencies
run: npm install
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Set up Docker Compose
run: |
docker-compose -f docker/docker-compose.yml -f docker/docker-compose-modeler.yaml up -d
docker-compose -f docker/docker-compose.yaml -f docker/docker-compose-modeler.yaml up -d
- name: Run Integration Tests
run: |
Expand All @@ -89,7 +89,7 @@ jobs:

- name: Cleanup
if: always()
run: docker-compose -f docker/docker-compose.yml -f docker/docker-compose-modeler.yaml down
run: docker-compose -f docker/docker-compose.yaml -f docker/docker-compose-modeler.yaml down

local_multitenancy_integration:
runs-on: ubuntu-latest
Expand All @@ -102,7 +102,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version
node-version: "20" # Specify a Node.js version

- name: Install dependencies
run: npm install
Expand All @@ -117,7 +117,7 @@ jobs:
- name: Set up Docker Compose
run: |
docker-compose -f docker/docker-compose-multitenancy.yml -f docker/docker-compose-modeler.yaml up -d
docker-compose -f docker/docker-compose-multitenancy.yaml -f docker/docker-compose-modeler.yaml up -d
- name: Run Integration Tests
run: |
Expand All @@ -137,7 +137,7 @@ jobs:

- name: Cleanup
if: always()
run: docker-compose -f docker/docker-compose-multitenancy.yml -f docker/docker-compose-modeler.yaml down
run: docker-compose -f docker/docker-compose-multitenancy.yaml -f docker/docker-compose-modeler.yaml down

saas_integration:
runs-on: ubuntu-latest
Expand All @@ -149,7 +149,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version
node-version: "20" # Specify a Node.js version

- name: Install dependencies
run: npm install
Expand All @@ -159,6 +159,8 @@ jobs:
npm run test:integration
env:
ZEEBE_ADDRESS: ${{ secrets.ZEEBE_ADDRESS }}
ZEEBE_REST_ADDRESS: ${{ secrets.ZEEBE_REST_ADDRESS }}
ZEEBE_GRPC_ADDRESS: ${{ secrets.ZEEBE_GRPC_ADDRESS }}
ZEEBE_CLIENT_ID: ${{ secrets.ZEEBE_CLIENT_ID }}
ZEEBE_AUTHORIZATION_SERVER_URL: ${{ secrets.ZEEBE_AUTHORIZATION_SERVER_URL }}
ZEEBE_CLIENT_SECRET: ${{ secrets.ZEEBE_CLIENT_SECRET }}
Expand All @@ -174,38 +176,40 @@ jobs:
CAMUNDA_CONSOLE_BASE_URL: ${{ secrets.CAMUNDA_CONSOLE_BASE_URL }}
CAMUNDA_CONSOLE_OAUTH_AUDIENCE: ${{ secrets.CAMUNDA_CONSOLE_OAUTH_AUDIENCE}}

saas_integration_windows:
needs: saas_integration
runs-on: windows-latest
environment: integration
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version

- name: Install dependencies
run: npm install

- name: Run Integration Tests
run: |
npm run test:integration
env:
ZEEBE_ADDRESS: ${{ secrets.ZEEBE_ADDRESS }}
ZEEBE_CLIENT_ID: ${{ secrets.ZEEBE_CLIENT_ID }}
ZEEBE_AUTHORIZATION_SERVER_URL: ${{ secrets.ZEEBE_AUTHORIZATION_SERVER_URL }}
ZEEBE_CLIENT_SECRET: ${{ secrets.ZEEBE_CLIENT_SECRET }}
ZEEBE_TOKEN_AUDIENCE: ${{ secrets.ZEEBE_TOKEN_AUDIENCE }}
CAMUNDA_CREDENTIALS_SCOPES: ${{ secrets.CAMUNDA_CREDENTIALS_SCOPES }}
CAMUNDA_OAUTH_URL: ${{ secrets.CAMUNDA_OAUTH_URL }}
CAMUNDA_TASKLIST_BASE_URL: ${{ secrets.CAMUNDA_TASKLIST_BASE_URL }}
CAMUNDA_OPERATE_BASE_URL: ${{ secrets.CAMUNDA_OPERATE_BASE_URL }}
CAMUNDA_OPTIMIZE_BASE_URL: ${{ secrets.CAMUNDA_OPTIMIZE_BASE_URL }}
CAMUNDA_MODELER_BASE_URL: https://modeler.cloud.camunda.io/api
CAMUNDA_CONSOLE_CLIENT_ID: ${{ secrets.CAMUNDA_CONSOLE_CLIENT_ID }}
CAMUNDA_CONSOLE_CLIENT_SECRET: ${{ secrets.CAMUNDA_CONSOLE_CLIENT_SECRET }}
CAMUNDA_CONSOLE_BASE_URL: ${{ secrets.CAMUNDA_CONSOLE_BASE_URL }}
CAMUNDA_CONSOLE_OAUTH_AUDIENCE: ${{ secrets.CAMUNDA_CONSOLE_OAUTH_AUDIENCE}}
# saas_integration_windows:
# needs: saas_integration
# runs-on: windows-2019
# environment: integration
# steps:
# - name: Check out the repo
# uses: actions/checkout@v4

# - name: Use Node.js
# uses: actions/setup-node@v4
# with:
# node-version: "20" # Specify a Node.js version

# - name: Install dependencies
# run: npm install

# - name: Run Integration Tests
# run: |
# npm run test:integration
# env:
# ZEEBE_ADDRESS: ${{ secrets.ZEEBE_ADDRESS }}
# ZEEBE_REST_ADDRESS: ${{ secrets.ZEEBE_REST_ADDRESS }}
# ZEEBE_GRPC_ADDRESS: ${{ secrets.ZEEBE_GRPC_ADDRESS }}
# ZEEBE_CLIENT_ID: ${{ secrets.ZEEBE_CLIENT_ID }}
# ZEEBE_AUTHORIZATION_SERVER_URL: ${{ secrets.ZEEBE_AUTHORIZATION_SERVER_URL }}
# ZEEBE_CLIENT_SECRET: ${{ secrets.ZEEBE_CLIENT_SECRET }}
# ZEEBE_TOKEN_AUDIENCE: ${{ secrets.ZEEBE_TOKEN_AUDIENCE }}
# CAMUNDA_CREDENTIALS_SCOPES: ${{ secrets.CAMUNDA_CREDENTIALS_SCOPES }}
# CAMUNDA_OAUTH_URL: ${{ secrets.CAMUNDA_OAUTH_URL }}
# CAMUNDA_TASKLIST_BASE_URL: ${{ secrets.CAMUNDA_TASKLIST_BASE_URL }}
# CAMUNDA_OPERATE_BASE_URL: ${{ secrets.CAMUNDA_OPERATE_BASE_URL }}
# CAMUNDA_OPTIMIZE_BASE_URL: ${{ secrets.CAMUNDA_OPTIMIZE_BASE_URL }}
# CAMUNDA_MODELER_BASE_URL: https://modeler.cloud.camunda.io/api
# CAMUNDA_CONSOLE_CLIENT_ID: ${{ secrets.CAMUNDA_CONSOLE_CLIENT_ID }}
# CAMUNDA_CONSOLE_CLIENT_SECRET: ${{ secrets.CAMUNDA_CONSOLE_CLIENT_SECRET }}
# CAMUNDA_CONSOLE_BASE_URL: ${{ secrets.CAMUNDA_CONSOLE_BASE_URL }}
# CAMUNDA_CONSOLE_OAUTH_AUDIENCE: ${{ secrets.CAMUNDA_CONSOLE_OAUTH_AUDIENCE}}
97 changes: 50 additions & 47 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version
node-version: "20" # Specify a Node.js version

- name: Install dependencies
run: npm i
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version
node-version: "20" # Specify a Node.js version

- name: Install dependencies
run: npm install
Expand All @@ -54,7 +54,7 @@ jobs:
- name: Set up Docker Compose
run: |
docker-compose -f docker/docker-compose.yml -f docker/docker-compose-modeler.yaml up -d
docker-compose -f docker/docker-compose.yaml -f docker/docker-compose-modeler.yaml up -d
- name: Run Integration Tests
run: |
Expand All @@ -72,7 +72,7 @@ jobs:

- name: Cleanup
if: always()
run: docker-compose -f docker/docker-compose.yml -f docker/docker-compose-modeler.yaml down
run: docker-compose -f docker/docker-compose.yaml -f docker/docker-compose-modeler.yaml down

local_multitenancy_integration:
runs-on: ubuntu-latest
Expand All @@ -85,7 +85,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version
node-version: "20" # Specify a Node.js version

- name: Install dependencies
run: npm install
Expand All @@ -100,7 +100,7 @@ jobs:
- name: Set up Docker Compose
run: |
docker-compose -f docker/docker-compose-multitenancy.yml -f docker/docker-compose-modeler.yaml up -d
docker-compose -f docker/docker-compose-multitenancy.yaml -f docker/docker-compose-modeler.yaml up -d
- name: Run Integration Tests
run: |
Expand All @@ -120,7 +120,7 @@ jobs:

- name: Cleanup
if: always()
run: docker-compose -f docker/docker-compose-multitenancy.yml -f docker/docker-compose-modeler.yaml down
run: docker-compose -f docker/docker-compose-multitenancy.yaml -f docker/docker-compose-modeler.yaml down

saas_integration:
runs-on: ubuntu-latest
Expand All @@ -132,7 +132,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version
node-version: "20" # Specify a Node.js version

- name: Install dependencies
run: npm install
Expand All @@ -142,6 +142,8 @@ jobs:
npm run test:integration
env:
ZEEBE_ADDRESS: ${{ secrets.ZEEBE_ADDRESS }}
ZEEBE_REST_ADDRESS: ${{ secrets.ZEEBE_REST_ADDRESS }}
ZEEBE_GRPC_ADDRESS: ${{ secrets.ZEEBE_GRPC_ADDRESS }}
ZEEBE_CLIENT_ID: ${{ secrets.ZEEBE_CLIENT_ID }}
ZEEBE_AUTHORIZATION_SERVER_URL: ${{ secrets.ZEEBE_AUTHORIZATION_SERVER_URL }}
ZEEBE_CLIENT_SECRET: ${{ secrets.ZEEBE_CLIENT_SECRET }}
Expand All @@ -157,46 +159,47 @@ jobs:
CAMUNDA_CONSOLE_BASE_URL: ${{ secrets.CAMUNDA_CONSOLE_BASE_URL }}
CAMUNDA_CONSOLE_OAUTH_AUDIENCE: ${{ secrets.CAMUNDA_CONSOLE_OAUTH_AUDIENCE}}

saas_integration_windows:
needs: saas_integration
runs-on: windows-latest
environment: integration
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18" # Specify a Node.js version

- name: Install dependencies
run: npm install

- name: Run Integration Tests
run: |
npm run test:integration
env:
ZEEBE_ADDRESS: ${{ secrets.ZEEBE_ADDRESS }}
ZEEBE_CLIENT_ID: ${{ secrets.ZEEBE_CLIENT_ID }}
ZEEBE_AUTHORIZATION_SERVER_URL: ${{ secrets.ZEEBE_AUTHORIZATION_SERVER_URL }}
ZEEBE_CLIENT_SECRET: ${{ secrets.ZEEBE_CLIENT_SECRET }}
ZEEBE_TOKEN_AUDIENCE: ${{ secrets.ZEEBE_TOKEN_AUDIENCE }}
CAMUNDA_CREDENTIALS_SCOPES: ${{ secrets.CAMUNDA_CREDENTIALS_SCOPES }}
CAMUNDA_OAUTH_URL: ${{ secrets.CAMUNDA_OAUTH_URL }}
CAMUNDA_TASKLIST_BASE_URL: ${{ secrets.CAMUNDA_TASKLIST_BASE_URL }}
CAMUNDA_OPERATE_BASE_URL: ${{ secrets.CAMUNDA_OPERATE_BASE_URL }}
CAMUNDA_OPTIMIZE_BASE_URL: ${{ secrets.CAMUNDA_OPTIMIZE_BASE_URL }}
CAMUNDA_MODELER_BASE_URL: https://modeler.cloud.camunda.io/api
CAMUNDA_CONSOLE_CLIENT_ID: ${{ secrets.CAMUNDA_CONSOLE_CLIENT_ID }}
CAMUNDA_CONSOLE_CLIENT_SECRET: ${{ secrets.CAMUNDA_CONSOLE_CLIENT_SECRET }}
CAMUNDA_CONSOLE_BASE_URL: ${{ secrets.CAMUNDA_CONSOLE_BASE_URL }}
CAMUNDA_CONSOLE_OAUTH_AUDIENCE: ${{ secrets.CAMUNDA_CONSOLE_OAUTH_AUDIENCE}}
# saas_integration_windows:
# needs: saas_integration
# runs-on: windows-2019
# environment: integration
# steps:
# - name: Check out the repo
# uses: actions/checkout@v4

# - name: Use Node.js
# uses: actions/setup-node@v4
# with:
# node-version: "20" # Specify a Node.js version

# - name: Install dependencies
# run: npm install

# - name: Run Integration Tests
# run: |
# npm run test:integration
# env:
# ZEEBE_ADDRESS: ${{ secrets.ZEEBE_ADDRESS }}
# ZEEBE_CLIENT_ID: ${{ secrets.ZEEBE_CLIENT_ID }}
# ZEEBE_REST_ADDRESS: ${{ secrets.ZEEBE_REST_ADDRESS }}
# ZEEBE_GRPC_ADDRESS: ${{ secrets.ZEEBE_GRPC_ADDRESS }}
# ZEEBE_AUTHORIZATION_SERVER_URL: ${{ secrets.ZEEBE_AUTHORIZATION_SERVER_URL }}
# ZEEBE_CLIENT_SECRET: ${{ secrets.ZEEBE_CLIENT_SECRET }}
# ZEEBE_TOKEN_AUDIENCE: ${{ secrets.ZEEBE_TOKEN_AUDIENCE }}
# CAMUNDA_CREDENTIALS_SCOPES: ${{ secrets.CAMUNDA_CREDENTIALS_SCOPES }}
# CAMUNDA_OAUTH_URL: ${{ secrets.CAMUNDA_OAUTH_URL }}
# CAMUNDA_TASKLIST_BASE_URL: ${{ secrets.CAMUNDA_TASKLIST_BASE_URL }}
# CAMUNDA_OPERATE_BASE_URL: ${{ secrets.CAMUNDA_OPERATE_BASE_URL }}
# CAMUNDA_OPTIMIZE_BASE_URL: ${{ secrets.CAMUNDA_OPTIMIZE_BASE_URL }}
# CAMUNDA_MODELER_BASE_URL: https://modeler.cloud.camunda.io/api
# CAMUNDA_CONSOLE_CLIENT_ID: ${{ secrets.CAMUNDA_CONSOLE_CLIENT_ID }}
# CAMUNDA_CONSOLE_CLIENT_SECRET: ${{ secrets.CAMUNDA_CONSOLE_CLIENT_SECRET }}
# CAMUNDA_CONSOLE_BASE_URL: ${{ secrets.CAMUNDA_CONSOLE_BASE_URL }}
# CAMUNDA_CONSOLE_OAUTH_AUDIENCE: ${{ secrets.CAMUNDA_CONSOLE_OAUTH_AUDIENCE}}
tag-and-publish:
needs:
[
needs: [
saas_integration,
saas_integration_windows,
# saas_integration_windows,
local_multitenancy_integration,
local_integration,
unit-tests,
Expand All @@ -212,7 +215,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "20"
cache: "npm"
- name: Install
run: npm i
Expand Down
Loading

0 comments on commit 1359c6d

Please sign in to comment.