Add schema testing to PR workflow

This commit is contained in:
Julio Castillo
2024-08-09 13:12:55 +02:00
committed by Wiktor Niesiobędzki
parent d9bec5be54
commit 714b97598f
2 changed files with 24 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ jobs:
- name: Run tests on documentation examples
env:
TERRAFORM: ${{ matrix.flavour }}
run: pytest -vv ${{ matrix.flavour == 'terraform' && '-n4' || '-n4' }} --tb=line --junit-xml=test-results-raw.xml -k modules/ tests/examples
run: pytest -vv ${{ matrix.flavour == 'terraform' && '-n4' || '-n4' }} --tb=line --junit-xml=test-results-raw.xml -k "terraform: and modules/" tests/examples
- name: Create report
uses: ./.github/actions/post-fabric-tests
@@ -238,3 +238,25 @@ jobs:
if: always()
with:
MODULE: FAST
test-schemas:
runs-on: ubuntu-latest
needs: setup-tf-providers
steps:
- uses: actions/checkout@v4
- name: Call composite action fabric-tests
uses: ./.github/actions/fabric-tests
with:
PYTHON_VERSION: ${{ env.PYTHON_VERSION }}
TERRAFORM_VERSION: ${{ env.DEFAULT_TERRAFORM_VERSION }}
TERRAFORM_FLAVOUR: ${{ env.DEFAULT_TERRAFORM_FLAVOUR }}
- name: Run schema tests
run: pytest -vv --tb=line --junit-xml=test-results-raw.xml "(tests and schemas) or (fast and schema) or (examples and yaml)"
- name: Create report
uses: ./.github/actions/post-fabric-tests
if: always()
with:
MODULE: Schemas