mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 01:23:21 +08:00
* CB-5238 add main properties for connections * CB-5197 render main properties * CB-5197 render main properties * CB-5238 set default values to main properties * CB-5197 fix(ci/cd): respect base and target branches * CB-5238 fixes after review * CB-5197 review fixes * CB-5197 switch to new model * CB-5238 fixes after review * CB-5197 remove custom configuration type * CB-5238 remove custom config type from gql schema * CB-5197 do not check configuration type for creds * CB-5197 make argument optional * CB-5238 fix creating connection with url * CB-5238 rename param * CB-5238 rename param * CB-5197 rename field --------- Co-authored-by: naumov <iamemptyhuh@gmail.com> Co-authored-by: Alexey <wrouds@gmail.com> Co-authored-by: Evgenia Bezborodova <139753579+EvgeniaBzzz@users.noreply.github.com>
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: Backend Build
|
|
|
|
on:
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
# Allows you to reuse workflows by referencing their YAML files
|
|
workflow_call:
|
|
|
|
jobs:
|
|
build-backend:
|
|
name: Backend
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: "temurin"
|
|
java-version: "17"
|
|
cache: maven
|
|
|
|
- uses: stCarolas/setup-maven@v5
|
|
with:
|
|
maven-version: 3.9.0
|
|
|
|
- name: Give permissions
|
|
run: |
|
|
sudo chmod 777 ../
|
|
shell: bash
|
|
|
|
- name: Determine branches
|
|
id: determine-branch
|
|
run: |
|
|
echo "pr_branch=${{ github.head_ref }}" >> $GITHUB_ENV
|
|
echo "base_branch=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
|
|
|
|
- name: Clone dbeaver/dbeaver
|
|
id: clone-repo
|
|
run: |
|
|
git clone -b ${{ env.pr_branch }} https://github.com/dbeaver/dbeaver.git ../dbeaver || git clone -b ${{ env.base_branch }} https://github.com/dbeaver/dbeaver.git ../dbeaver
|
|
|
|
- name: Run build script
|
|
run: ./build-backend.sh
|
|
shell: bash
|
|
working-directory: ./deploy
|
|
|
|
- name: Archive build artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: backend-build-artifacts
|
|
path: deploy/cloudbeaver
|
|
if-no-files-found: error
|