Skip to content

Commit

Permalink
chore: create GitHub Action to test generated schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
thepabloaguilar committed Feb 19, 2024
1 parent 22c78d0 commit 7b2aa67
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7b2aa67

Please sign in to comment.