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

Release 8.5.0 #124

Merged
merged 33 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
1f40b6a
ci(repo): create npm publish workflow (#100)
jwulf Apr 4, 2024
7a5e641
Remove-docs (#101)
jwulf Apr 4, 2024
11c1794
ci(repo): update publish workflow (#102)
jwulf Apr 4, 2024
3345a37
ci(repo): configure renovate to run against alpha branch (#103)
jwulf Apr 4, 2024
265d5a8
chore(release): 8.5.0-alpha.1 [skip ci]
semantic-release-bot Apr 4, 2024
989d634
test(repo): skip jest global setup for unit tests (#106)
jwulf Apr 5, 2024
d4dbef8
build(repo): parallelise publish workflow
jwulf Apr 5, 2024
258e979
build(repo): fix parallelisation
jwulf Apr 5, 2024
fc45d61
fix(repo): add note on "supported" (#107)
jwulf Apr 5, 2024
333ba8f
chore(release): 8.5.0-alpha.2 [skip ci]
semantic-release-bot Apr 5, 2024
9012764
fix(repo): only git commit on npm publish success
jwulf Apr 5, 2024
6488775
chore(release): 8.5.0-alpha.3 [skip ci]
semantic-release-bot Apr 5, 2024
9f23921
chore(release): 8.5.0-alpha.3 [skip ci]
semantic-release-bot Apr 5, 2024
4bd2d8b
build(repo): configure semantic release (#109)
jwulf Apr 5, 2024
7efdcf3
fix(repo): use ts-patch to transform module mapping in output (#112)
jwulf Apr 5, 2024
bb4bcc3
chore(release): 8.5.0-alpha.4 [skip ci]
semantic-release-bot Apr 5, 2024
d0b1adb
chore(release): 8.5.0-alpha.4 [skip ci]
semantic-release-bot Apr 5, 2024
980f64b
ci(repo): parallelise tests and use npm install in CI (#116)
jwulf Apr 6, 2024
677ddc4
Jwulf/issue114 (#117)
jwulf Apr 7, 2024
ded83cf
fix(repo): make fix type commits release a new package
jwulf Apr 7, 2024
66d501a
ci(repo): wrap long lines in commit messages
jwulf Apr 7, 2024
0adb609
ci(repo): wrap footer lines at 100 characters in semantic-release config
jwulf Apr 7, 2024
4199208
ci(repo): break commit msgs to 100 chars via husky hook
jwulf Apr 7, 2024
1f58afd
ci(repo): disable husky during semantic-release
jwulf Apr 7, 2024
fcb1433
chore(release): 8.5.0-alpha.5 [skip ci]
semantic-release-bot Apr 7, 2024
a1d9e9f
chore(release): 8.5.0-alpha.5 [skip ci]
semantic-release-bot Apr 7, 2024
77c133d
Issue118 (#119)
jwulf Apr 7, 2024
fe0c709
fix(issue118): add smoke test and type surface tests
jwulf Apr 7, 2024
81fed73
Merge branch 'alpha' of github.com:camunda/camunda-8-js-sdk into alpha
jwulf Apr 8, 2024
58a647d
release(repo): trigger a new release
jwulf Apr 8, 2024
7de40d8
chore(release): 8.5.0-alpha.6 [skip ci]
semantic-release-bot Apr 8, 2024
6ead0d6
chore(release): 8.5.0-alpha.6 [skip ci]
semantic-release-bot Apr 8, 2024
a1f4aa7
ci(repo): add CodeQL scanning (#120)
jwulf Apr 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@
],
"import/newline-after-import": "error",
"prettier/prettier": "error"
},
"env": {
"node": true
}
}
34 changes: 34 additions & 0 deletions .github/workflows/code-scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Code Scanning"

on:
push:
branches: [main, alpha]
pull_request:
branches: [main, alpha]
paths-ignore:
- "**/*.md"

jobs:
CodeQL-Build:
runs-on: ubuntu-latest

permissions:
# required for all workflows
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: "typescript, javascript"
config: |
paths-ignore:
- '**/__tests__'
- '**/test'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
9 changes: 3 additions & 6 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,17 @@ jobs:
with:
node-version: "18" # Specify a Node.js version

- name: Remove package-lock.json # This is to work around https://github.com/npm/cli/issues/4828
run: rm -f package-lock.json

- name: Install dependencies
run: npm install

- name: Lint last commit message
run: npx commitlint --from=${{ github.event.pull_request.base.sha }} --to=${{ github.event.pull_request.head.sha }} --verbose

- name: Run Prettier
run: lerna run prettify
run: npm run format

- name: Run ESLint
run: lerna run lint
run: npm run lint

- name: Commit and push if changes
run: |
Expand All @@ -40,7 +37,7 @@ jobs:
git checkout ${{ github.head_ref }}

# Add, commit, and push changes, ignoring package-lock.json
git diff --name-only | grep -v 'package-lock.json' | xargs git add
git diff --name-only | xargs git add
git diff --staged --quiet || git commit -m "Apply Prettier formatting"
git push origin ${{ github.head_ref }}
env:
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/multitenancy.yml

This file was deleted.

155 changes: 155 additions & 0 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
name: Pull Request tests

on: [pull_request]

jobs:
unit-tests:
runs-on: ubuntu-latest
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: Build and Smoke Test
run: npm run test:smoketest

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

local_integration:
runs-on: ubuntu-latest
environment:
name: selfhosted
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

# Workaround for https://github.com/actions/runner-images/issues/2821
- name: Remove mono blocking 8084 port
run: sudo kill -9 $(sudo lsof -t -i:8084)

- name: Set up Docker
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} registry.camunda.cloud

- name: Set up Docker Compose
run: |
docker-compose -f docker/docker-compose.yml -f docker/docker-compose-modeler.yaml up -d

- name: Run Integration Tests
run: |
npm run test:local-integration
env:
CAMUNDA_SECURE_CONNECTION: false
ZEEBE_ADDRESS: localhost:26500
ZEEBE_CLIENT_ID: zeebe
ZEEBE_CLIENT_SECRET: zecret
CAMUNDA_OAUTH_URL: http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token
CAMUNDA_TASKLIST_BASE_URL: http://localhost:8082
CAMUNDA_OPERATE_BASE_URL: http://localhost:8081
CAMUNDA_OPTIMIZE_BASE_URL: http://localhost:8083
CAMUNDA_MODELER_BASE_URL: http://localhost:8070/api

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

local_multitenancy_integration:
runs-on: ubuntu-latest
environment:
name: selfhosted
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

# Workaround for https://github.com/actions/runner-images/issues/2821
- name: Remove mono blocking 8084 port
run: sudo kill -9 $(sudo lsof -t -i:8084)

- name: Set up Docker
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} registry.camunda.cloud

- name: Set up Docker Compose
run: |
docker-compose -f docker/docker-compose-multitenancy.yml -f docker/docker-compose-modeler.yaml up -d

- name: Run Integration Tests
run: |
npm run test:multitenancy
env:
CAMUNDA_SECURE_CONNECTION: false
ZEEBE_ADDRESS: localhost:26500
ZEEBE_CLIENT_ID: zeebe
ZEEBE_CLIENT_SECRET: zecret
CAMUNDA_OAUTH_URL: http://localhost:18080/auth/realms/camunda-platform/protocol/openid-connect/token
CAMUNDA_TASKLIST_BASE_URL: http://localhost:8082
CAMUNDA_OPERATE_BASE_URL: http://localhost:8081
CAMUNDA_OPTIMIZE_BASE_URL: http://localhost:8083
CAMUNDA_MODELER_BASE_URL: http://localhost:8070/api
# Needed for Multi-Tenancy
CAMUNDA_TENANT_ID: <default>

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

saas_integration:
runs-on: ubuntu-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}}
CAMUNDA_OAUTH_TOKEN_REFRESH_THRESHOLD_MS: 10000 #89: Intermittent 401 unauthorised in integration tests
Loading
Loading