mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 10:19:51 -06:00
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com> Co-authored-by: ShubhamPalriwala <spalriwalau@gmail.com>
43 lines
925 B
YAML
43 lines
925 B
YAML
name: PR Update
|
|
|
|
on:
|
|
pull_request_target:
|
|
branches:
|
|
- main
|
|
merge_group:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: Run Tests
|
|
uses: ./.github/workflows/test.yml
|
|
secrets: inherit
|
|
|
|
lint:
|
|
name: Run Linters
|
|
uses: ./.github/workflows/lint.yml
|
|
secrets: inherit
|
|
|
|
build:
|
|
name: Build Formbricks-web
|
|
uses: ./.github/workflows/build-web.yml
|
|
secrets: inherit
|
|
|
|
e2e-test:
|
|
name: Run E2E Tests
|
|
uses: ./.github/workflows/e2e.yml
|
|
secrets: inherit
|
|
|
|
required:
|
|
needs: [lint, test, build, e2e-test]
|
|
if: always()
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: fail if conditional jobs failed
|
|
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')
|
|
run: exit 1
|