Skip to content

dbeaver/dbeaver-devops#1525 update ci workflows #4

dbeaver/dbeaver-devops#1525 update ci workflows

dbeaver/dbeaver-devops#1525 update ci workflows #4

Workflow file for this run

name: CI
on:
pull_request:
branches: [devel]
push:
branches: [devel]
concurrency:
group: |
# For pull requests, group by the pull request ID
${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) }}
# For pushes to main, group by the branch name (e.g., 'main')
${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'main-branch' }}
cancel-in-progress: true
jobs:
build-server:
name: Server
uses: ./.github/workflows/backend-build.yml
secrets: inherit
build-frontend:
name: Frontend
uses: ./.github/workflows/frontend-build.yml
secrets: inherit
lint-server:
name: Server
uses: ./.github/workflows/backend-lint.yml
secrets: inherit
lint-frontend:
name: Frontend
uses: ./.github/workflows/frontend-lint.yml
secrets: inherit
# 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