From 7b2aa67f11b07aac4ced9f5115f321ce02355087 Mon Sep 17 00:00:00 2001 From: Pablo Aguilar Date: Sun, 18 Feb 2024 21:00:25 -0300 Subject: [PATCH] chore: create GitHub Action to test generated schemas --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a071712 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: test + +on: + push: + pull_request: + +permissions: + contents: read + +jobs: + test-schemas: + runs-on: ubuntu-latest + name: Test if schemas were generated + steps: + - uses: actions/checkout@v4 + + - uses: isbang/compose-action@v1.5.1 + with: + up-flags: "--build" + down-flags: "--volumes" + + - name: Generate images + run: docker exec -i ship-it-boardgame-renderer-1 python render.py + + - name: Verify diff + run: git diff --exit-code