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.
This commit is contained in:
Elle Mouton 2025-02-20 20:40:19 -03:00
parent f0d4ea10a2
commit 343bdff26b
No known key found for this signature in database
GPG key ID: D7D916376026F177
2 changed files with 22 additions and 1 deletions

View file

@ -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() }}

View file

@ -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")