-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix: try to fix make docker container.sh * fix: specify correct docker build scripts folder * fix: validate branch to valid docker tag name * feat: combined workflows * feat: add readable names for github actions * feat: add docker pull command comment * fix: comment publishing comment with docker instructions * feat: improve build & test performance * feat: add option to skip cache * fix: flush cache * fix: flush cache * feat: merge tests and build steps * fix: github action outputs keys * feat: add lint job * feat: change file to trigger lint * fix: omit webapp path * fix: trigger lint * fix: continue on linting errors * feat: add publishing container to github docker registry * feat: add lint status * chore: re-trigger-lint * feat: add java checkstyle * fix: java linting * fix: github token * fix: update jave checkstyle action * chore: simplify frontend lint action * chore: remove changed java files * feat: revert lint trigger frontend * feat: add docker credentials helper * fix: remove credentials warning * fix: tests and clean command * CB-5228 feat: run frontend tests for every build * fix: clean tasks * feat: update cli tools
- Loading branch information
Showing
124 changed files
with
1,039 additions
and
918 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Backend Lint | ||
|
||
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: | ||
inputs: | ||
skip_cache: | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
lint: | ||
name: Backend | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Checkout checkstyle config repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: dbeaver/dbeaver | ||
path: dbeaver-config | ||
|
||
- name: Copy checkstyle config | ||
run: cp dbeaver-config/dbeaver-checkstyle-config.xml ./dbeaver-checkstyle-config.xml | ||
|
||
- name: Remove checkstyle config directory | ||
run: rm -rf dbeaver-config | ||
|
||
- uses: dbelyaev/action-checkstyle@master | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-review | ||
filter_mode: diff_context | ||
checkstyle_config: ./dbeaver-checkstyle-config.xml | ||
fail_on_error: true |
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,57 @@ | ||
name: Cleanup checks | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
delete-caches: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cleanup | ||
run: | | ||
gh extension install actions/gh-actions-cache | ||
echo "Fetching list of cache key" | ||
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH -L 100 | cut -f 1 ) | ||
## Setting this to not fail the workflow while deleting cache keys. | ||
set +e | ||
echo "Deleting caches..." | ||
for cacheKey in $cacheKeysForPR | ||
do | ||
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm | ||
done | ||
echo "Done" | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
REPO: ${{ github.repository }} | ||
BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge | ||
|
||
# delete-docker-image: | ||
# name: Delete Docker Image | ||
# if: github.event.pull_request.merged == true | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Check out the repository | ||
# uses: actions/checkout@v4 | ||
|
||
# - name: Set up Docker Buildx | ||
# uses: docker/setup-buildx-action@v3 | ||
|
||
# - name: Determine Docker Image Tag | ||
# run: | | ||
# REPO_NAME=$(basename ${{ github.repository }}) | ||
# IMAGE_NAME=ghcr.io/${{ github.repository_owner }}/$REPO_NAME | ||
# BRANCH_NAME=${{ github.event.pull_request.head.ref }} | ||
# TAG_NAME=$(echo $BRANCH_NAME | sed 's/[^a-zA-Z0-9._-]/-/g') | ||
# echo "image=$IMAGE_NAME:$TAG_NAME" >> $GITHUB_ENV | ||
|
||
# - name: Log in to GitHub Container Registry | ||
# run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin | ||
|
||
# - name: Delete Docker Image | ||
# run: | | ||
# docker rmi ${{ env.image }} | ||
# echo "Deleted image: ${{ env.image }}" |
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,56 @@ | ||
name: Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- devel | ||
pull_request: | ||
branches: | ||
- devel | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
skip_cache: | ||
description: "Skip cache restoration" | ||
required: false | ||
default: "false" | ||
|
||
jobs: | ||
call-backend-build: | ||
name: Build | ||
uses: ./.github/workflows/backend-build.yml | ||
|
||
call-frontend-build: | ||
name: Build | ||
uses: ./.github/workflows/frontend-build.yml | ||
with: | ||
skip_cache: ${{ github.event.inputs.skip_cache }} | ||
|
||
call-frontend-lint: | ||
name: Lint | ||
needs: call-frontend-build | ||
uses: ./.github/workflows/frontend-lint.yml | ||
|
||
call-backend-lint: | ||
name: Lint | ||
uses: ./.github/workflows/backend-lint.yml | ||
|
||
# call-frontend-tests: | ||
# name: Frontend Unit Tests | ||
# needs: call-frontend-build | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Check if tests passed | ||
# if: ${{ needs.call-frontend-build.outputs.test-status != 'success' }} | ||
# run: | | ||
# echo "Tests failed" | ||
# exit 1 | ||
# - name: Continue if tests passed | ||
# if: ${{ needs.call-frontend-build.outputs.test-status == 'success' }} | ||
# run: echo "Tests passed" | ||
|
||
# call-docker-build-and-push: | ||
# name: Run | ||
# needs: [call-backend-build, call-frontend-build] | ||
# uses: ./.github/workflows/docker-build-and-push.yml |
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
Oops, something went wrong.