Files
moonwell-core-vanilla/.github/workflows/pr-sql-check.yaml
T
2026-04-02 04:07:14 +03:00

31 lines
820 B
YAML

# Validate SQL changes on pull requests.
name: Pull Request SQL Check
on:
pull_request:
paths:
- '.github/scripts/export-and-verify-sql-dumps.sh'
- '.github/scripts/prepare-sql-test-environment.sh'
- '.github/workflows/pr-sql-check.yaml'
- '**/*.sql'
env:
WORLD_DB_ARCHIVE: world_full_14_june_2021
jobs:
build:
name: Validate SQL changes
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Prepare SQL test environment
run: ./.github/scripts/prepare-sql-test-environment.sh "${{ env.WORLD_DB_ARCHIVE }}"
- name: Export and verify migrated databases
run: ./.github/scripts/export-and-verify-sql-dumps.sh "${{ github.workspace }}/database-artifacts"