@@ -790,3 +790,77 @@ jobs:
790790 echo "Drift detected: ${{ steps.deploy.outputs.drift-detected }}"
791791 test "${{ steps.deploy.outputs.exit-code }}" = "1"
792792 test "${{ steps.deploy.outputs.drift-detected }}" = "true"
793+
794+ state-deploy-community :
795+ strategy :
796+ matrix :
797+ os : [ubuntu-latest, windows-latest, macos-latest]
798+ runs-on : ${{ matrix.os }}
799+ steps :
800+ - name : Checkout
801+ uses : actions/checkout@v6
802+ - name : Setup Flyway
803+ uses : red-gate/setup-flyway@v3
804+ with :
805+ edition : community
806+ i-agree-to-the-eula : true
807+ - name : Run state deploy
808+ id : deploy
809+ uses : ./state/deploy
810+ with :
811+ target-url : jdbc:sqlite:state-target.db
812+ script-path : deployments/D__deployment.sql
813+ working-directory : sample-projects/sqlite
814+ - name : Test outputs
815+ shell : bash
816+ run : |
817+ set -euo pipefail
818+ echo "Exit code: ${{ steps.deploy.outputs.exit-code }}"
819+ echo "Drift detected: ${{ steps.deploy.outputs.drift-detected }}"
820+ test "${{ steps.deploy.outputs.exit-code }}" = "0"
821+ test "${{ steps.deploy.outputs.drift-detected }}" = ""
822+
823+ state-deploy-no-comparison-support :
824+ strategy :
825+ matrix :
826+ os : [ubuntu-latest, windows-latest, macos-latest]
827+ runs-on : ${{ matrix.os }}
828+ permissions :
829+ contents : read
830+ id-token : write
831+ steps :
832+ - name : Checkout
833+ uses : actions/checkout@v6
834+ - name : Retrieve secrets from Vault
835+ uses : hashicorp/vault-action@v3.4.0
836+ with :
837+ method : jwt
838+ path : ${{ vars.VAULT_AUTH_PATH }}
839+ url : ${{ vars.VAULT_URL }}
840+ role : " flyway-actions"
841+ secrets : |
842+ build-secrets/data/repos/red-gate/flyway-actions/flyway FLYWAY_PERMIT_ENTERPRISE | FLYWAY_PERMIT_ENTERPRISE;
843+ - name : Setup Flyway
844+ uses : red-gate/setup-flyway@v3
845+ env :
846+ REDGATE_LICENSING_PERMIT : ${{ env.FLYWAY_PERMIT_ENTERPRISE }}
847+ with :
848+ edition : enterprise
849+ i-agree-to-the-eula : true
850+ - name : Run state deploy
851+ id : deploy
852+ uses : ./state/deploy
853+ env :
854+ REDGATE_LICENSING_PERMIT : ${{ env.FLYWAY_PERMIT_ENTERPRISE }}
855+ with :
856+ target-url : jdbc:h2:mem:test
857+ script-path : migrations/V1__create_users_table.sql
858+ working-directory : sample-projects/h2
859+ - name : Test outputs
860+ shell : bash
861+ run : |
862+ set -euo pipefail
863+ echo "Exit code: ${{ steps.deploy.outputs.exit-code }}"
864+ echo "Drift detected: ${{ steps.deploy.outputs.drift-detected }}"
865+ test "${{ steps.deploy.outputs.exit-code }}" = "0"
866+ test "${{ steps.deploy.outputs.drift-detected }}" = ""
0 commit comments