mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-30 03:00:23 -05:00
63 lines
2.0 KiB
YAML
63 lines
2.0 KiB
YAML
name: Pull Request Workflow
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref_name }}-pr
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
# ********************************************************************************************************************
|
|
# File changes detection
|
|
# ********************************************************************************************************************
|
|
file-changes:
|
|
if: ${{ github.event.pull_request.draft == false }}
|
|
name: File changes detection
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
outputs:
|
|
ui: ${{ steps.changes.outputs.ui }}
|
|
translations: ${{ steps.changes.outputs.translations }}
|
|
backend: ${{ steps.changes.outputs.backend }}
|
|
steps:
|
|
- uses: dorny/paths-filter@v3
|
|
id: changes
|
|
with:
|
|
filters: |
|
|
ui:
|
|
- 'ui/**'
|
|
backend:
|
|
- '!{ui,.github}/**'
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# ********************************************************************************************************************
|
|
# Tests
|
|
# ********************************************************************************************************************
|
|
frontend:
|
|
name: Frontend - Tests
|
|
needs: [file-changes]
|
|
if: "needs.file-changes.outputs.ui == 'true'"
|
|
uses: ./.github/workflows/workflow-frontend-test.yml
|
|
secrets:
|
|
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
backend:
|
|
name: Backend - Tests
|
|
needs: file-changes
|
|
if: "needs.file-changes.outputs.backend == 'true'"
|
|
uses: ./.github/workflows/workflow-backend-test.yml
|
|
secrets:
|
|
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
|
GOOGLE_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
|
|
|
|
e2e-tests:
|
|
name: E2E - Tests
|
|
uses: ./.github/workflows/e2e.yml
|
|
|