ci: join server test and migration test

This commit is contained in:
David 2024-11-19 22:49:18 +01:00
parent 8ee2fdc6e4
commit 54c9ee29c3
No known key found for this signature in database
GPG key ID: AB15A6AF1101390D
2 changed files with 8 additions and 44 deletions

View file

@ -1,44 +0,0 @@
name: Patch (MariaDB)
on:
pull_request:
workflow_dispatch:
concurrency:
group: patch-mariadb-develop-${{ github.event_name }}-${{ github.event.number }}
cancel-in-progress: true
permissions:
# Do not change this as GITHUB_TOKEN is being used by roulette
contents: read
jobs:
checkrun:
name: Plan Migration
runs-on: ubuntu-latest
outputs:
build: ${{ steps.check-build.outputs.build }}
steps:
- name: Clone
uses: actions/checkout@v4
- name: Check if build should be run
id: check-build
run: |
python "${GITHUB_WORKSPACE}/.github/helper/roulette.py"
env:
TYPE: "server"
PR_NUMBER: ${{ github.event.number }}
REPO_NAME: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
migrate:
name: Migration
needs: checkrun
uses: frappe/frappe/.github/workflows/patch-base.yml@develop
with:
python-version: '3.10'
node-version: 20
fake-success: ${{ needs.checkrun.outputs.build != 'strawberry' }}

View file

@ -51,6 +51,14 @@ jobs:
needs: checkrun
secrets: inherit
migrate:
name: Migration
needs: checkrun
uses: frappe/frappe/.github/workflows/patch-base.yml@develop
with:
python-version: '3.10'
node-version: 20
fake-success: ${{ needs.checkrun.outputs.build != 'strawberry' }}
coverage:
name: Coverage Wrap Up