From cc8ce4879d183e14a01b1435a0053fab0e897781 Mon Sep 17 00:00:00 2001 From: Carson Full Date: Wed, 15 Nov 2023 11:34:15 -0600 Subject: [PATCH 1/2] Add PR workflow to check if migrations are in sync --- .github/workflows/edgedb-schema.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/edgedb-schema.yml diff --git a/.github/workflows/edgedb-schema.yml b/.github/workflows/edgedb-schema.yml new file mode 100644 index 0000000000..1d872df33b --- /dev/null +++ b/.github/workflows/edgedb-schema.yml @@ -0,0 +1,12 @@ +name: EdgeDB Schema +on: + pull_request: + +jobs: + clean: + name: Migration In Sync + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: edgedb/setup-edgedb@v1 + - run: edgedb migration status From bb14808cd50500cf0fc0729e4e8b17a30dd52404 Mon Sep 17 00:00:00 2001 From: Carson Full Date: Wed, 15 Nov 2023 11:35:46 -0600 Subject: [PATCH 2/2] Apply dev migrations for lint/test/gql schema workflows This prevents them from failing if only a migration file is missing. The previous commit will catch that. --- .github/actions/edgedb-setup/action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/actions/edgedb-setup/action.yml b/.github/actions/edgedb-setup/action.yml index 35ee93daa3..83674bcccc 100644 --- a/.github/actions/edgedb-setup/action.yml +++ b/.github/actions/edgedb-setup/action.yml @@ -6,6 +6,9 @@ runs: - name: Setup EdgeDB uses: edgedb/setup-edgedb@v1 + - run: edgedb migrate --dev-mode + shell: bash + - name: Generate EdgeDB TS files shell: bash run: yarn edgedb:gen