-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/issue-255-adr-001-jand-cloud-native
- Loading branch information
Showing
292 changed files
with
42,770 additions
and
12,920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
categories: | ||
- title: '🚀 Features' | ||
labels: | ||
- 'type: enhancement' | ||
- 'type: epic' | ||
- 'type: feature request' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'type: bug' | ||
- title: '🧰 Maintenance' | ||
labels: | ||
- 'type: chore' | ||
- 'type: ci' | ||
- title: '📖 Documentaion' | ||
labels: | ||
- 'type: documentation' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
template: | | ||
## Changes | ||
$CHANGES | ||
## Contributor | ||
$CONTRIBUTORS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
name: Jan Build MacOS App | ||
|
||
on: | ||
push: | ||
tags: ['v*.*.*'] | ||
|
||
jobs: | ||
build-macos: | ||
runs-on: macos-latest | ||
environment: production | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Getting the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Installing node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install jq | ||
uses: dcarbone/[email protected] | ||
|
||
- name: Get tag | ||
id: tag | ||
uses: dawidd6/action-get-tag@v1 | ||
|
||
- name: Update app version base on tag | ||
run: | | ||
if [[ ! "${VERSION_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
echo "Error: Tag is not valid!" | ||
exit 1 | ||
fi | ||
jq --arg version "${VERSION_TAG#v}" '.version = $version' electron/package.json > /tmp/package.json | ||
mv /tmp/package.json electron/package.json | ||
env: | ||
VERSION_TAG: ${{ steps.tag.outputs.tag }} | ||
|
||
- name: Get Cer for code signing | ||
run: base64 -d <<< "$CODE_SIGN_P12_BASE64" > /tmp/codesign.p12 | ||
shell: bash | ||
env: | ||
CODE_SIGN_P12_BASE64: ${{ secrets.CODE_SIGN_P12_BASE64 }} | ||
|
||
- uses: apple-actions/import-codesign-certs@v2 | ||
with: | ||
p12-file-base64: ${{ secrets.CODE_SIGN_P12_BASE64 }} | ||
p12-password: ${{ secrets.CODE_SIGN_P12_PASSWORD }} | ||
|
||
- name: Install yarn dependencies | ||
run: | | ||
yarn install | ||
yarn build:plugins-darwin | ||
- name: Build and publish app | ||
run: | | ||
yarn build:publish-darwin | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CSC_LINK: "/tmp/codesign.p12" | ||
CSC_KEY_PASSWORD: ${{ secrets.CODE_SIGN_P12_PASSWORD }} | ||
CSC_IDENTITY_AUTO_DISCOVERY: "true" | ||
APPLE_ID: ${{ secrets.APPLE_ID }} | ||
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }} | ||
|
||
build-windows-x64: | ||
runs-on: windows-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Getting the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Installing node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install jq | ||
uses: dcarbone/[email protected] | ||
|
||
- name: Get tag | ||
id: tag | ||
uses: dawidd6/action-get-tag@v1 | ||
|
||
- name: Update app version base on tag | ||
shell: bash | ||
run: | | ||
if [[ ! "${VERSION_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
echo "Error: Tag is not valid!" | ||
exit 1 | ||
fi | ||
jq --arg version "${VERSION_TAG#v}" '.version = $version' electron/package.json > /tmp/package.json | ||
mv /tmp/package.json electron/package.json | ||
env: | ||
VERSION_TAG: ${{ steps.tag.outputs.tag }} | ||
|
||
- name: Install yarn dependencies | ||
run: | | ||
yarn config set network-timeout 300000 | ||
yarn install | ||
yarn build:plugins | ||
- name: Build and publish app | ||
run: | | ||
yarn build:publish-win32 | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
build-linux-x64: | ||
runs-on: ubuntu-latest | ||
environment: production | ||
env: | ||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Getting the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Installing node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install jq | ||
uses: dcarbone/[email protected] | ||
|
||
- name: Install Snapcraft | ||
uses: samuelmeuli/action-snapcraft@v2 | ||
|
||
- name: Get tag | ||
id: tag | ||
uses: dawidd6/action-get-tag@v1 | ||
|
||
- name: Update app version base on tag | ||
run: | | ||
if [[ ! "${VERSION_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
echo "Error: Tag is not valid!" | ||
exit 1 | ||
fi | ||
jq --arg version "${VERSION_TAG#v}" '.version = $version' electron/package.json > /tmp/package.json | ||
mv /tmp/package.json electron/package.json | ||
env: | ||
VERSION_TAG: ${{ steps.tag.outputs.tag }} | ||
|
||
- name: Install yarn dependencies | ||
run: | | ||
yarn config set network-timeout 300000 | ||
yarn install | ||
yarn build:plugins | ||
- name: Build and publish app | ||
run: | | ||
yarn build:publish-linux | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
update_release_draft: | ||
needs: [build-macos, build-windows-x64, build-linux-x64] | ||
permissions: | ||
# write permission is required to create a github release | ||
contents: write | ||
# write permission is required for autolabeler | ||
# otherwise, read permission is required at least | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
# (Optional) GitHub Enterprise requires GHE_HOST variable set | ||
#- name: Set GHE_HOST | ||
# run: | | ||
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV | ||
|
||
# Drafts your next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/release-drafter@v5 | ||
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml | ||
# with: | ||
# config-name: my-config.yml | ||
# disable-autolabeler: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Jan Docs Test Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/**' | ||
- '.github/workflows/deploy-jan-docs.yml' | ||
- '.github/workflows/jan-docs-test.yml' | ||
|
||
jobs: | ||
deploy: | ||
name: Test Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'yarn' | ||
cache-dependency-path: './docs/yarn.lock' | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
working-directory: docs | ||
- name: Test Build Command | ||
run: sed -i '/process.env.DEBUG = namespaces;/c\// process.env.DEBUG = namespaces;' ./node_modules/debug/src/node.js && yarn build | ||
working-directory: docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: Linter & Test | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'electron/**' | ||
- .github/workflows/linter-and-test.yml | ||
- 'web/**' | ||
- 'package.json' | ||
- 'node_modules/**' | ||
- 'yarn.lock' | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'electron/**' | ||
- .github/workflows/linter-and-test.yml | ||
- 'web/**' | ||
- 'package.json' | ||
- 'node_modules/**' | ||
- 'yarn.lock' | ||
|
||
jobs: | ||
test-on-macos: | ||
runs-on: [self-hosted, macOS, macos-desktop] | ||
steps: | ||
- name: 'Cleanup build folder' | ||
run: | | ||
ls -la ./ | ||
rm -rf ./* || true | ||
rm -rf ./.??* || true | ||
ls -la ./ | ||
- name: Getting the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Installing node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Linter and test | ||
run: | | ||
yarn config set network-timeout 300000 | ||
yarn build:core | ||
yarn install | ||
yarn lint | ||
yarn build:plugins | ||
yarn build | ||
yarn test | ||
env: | ||
CSC_IDENTITY_AUTO_DISCOVERY: "false" | ||
|
||
test-on-windows: | ||
runs-on: [self-hosted, Windows, windows-desktop] | ||
steps: | ||
- name: Clean workspace | ||
run: | | ||
Remove-Item -Path .\* -Force -Recurse | ||
- name: Getting the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Installing node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Linter and test | ||
run: | | ||
yarn config set network-timeout 300000 | ||
yarn build:core | ||
yarn install | ||
yarn lint | ||
yarn build:plugins | ||
yarn build:win32 | ||
yarn test | ||
test-on-ubuntu: | ||
runs-on: [self-hosted, Linux, ubuntu-desktop] | ||
steps: | ||
- name: 'Cleanup build folder' | ||
run: | | ||
ls -la ./ | ||
rm -rf ./* || true | ||
rm -rf ./.??* || true | ||
ls -la ./ | ||
- name: Getting the repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Installing node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Linter and test | ||
run: | | ||
export DISPLAY=$(w -h | awk 'NR==1 {print $2}') | ||
echo -e "Display ID: $DISPLAY" | ||
yarn config set network-timeout 300000 | ||
yarn build:core | ||
yarn install | ||
yarn lint | ||
yarn build:plugins | ||
yarn build:linux | ||
yarn test |
Oops, something went wrong.