From 343bdff26b31a10270e9f9e128041a176abd1e8a Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Thu, 20 Feb 2025 20:40:19 -0300 Subject: [PATCH] make+gh: add make helper and GH action Add a makefile helper to run the neww backwards compatability test and then add a new GH actions job to call it. --- .github/workflows/main.yml | 18 +++++++++++++++++- Makefile | 5 +++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cb25f1a87..1d755b671 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -528,7 +528,23 @@ jobs: - name: release notes check run: scripts/check-release-notes.sh - + + ######################## + # Backwards Compatibility Test + ######################## + backwards-compatability-test: + name: backwards compatability test + runs-on: ubuntu-latest + steps: + - name: git checkout + uses: actions/checkout@v4 + + - name: 🐳 Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: 🛡️ backwards compatibility test + run: make backwards-compat-test + # Notify about the completion of all coverage collecting jobs. finish: if: ${{ always() }} diff --git a/Makefile b/Makefile index fc7a04118..511344d83 100644 --- a/Makefile +++ b/Makefile @@ -364,6 +364,11 @@ help: Makefile @$(call print, "Listing commands:") @sed -n 's/^#?//p' $< | column -t -s ':' | sort | sed -e 's/^/ /' +#? backwards-compat-test: Run basic backwards compatibility test +backwards-compat-test: + @$(call print, "Running backwards compatability test") + ./scripts/bw-compatibility-test/test.sh + #? sqlc: Generate sql models and queries in Go sqlc: @$(call print, "Generating sql models and queries in Go")