Add schema testing to PR workflow
This commit is contained in:
committed by
Wiktor Niesiobędzki
parent
d9bec5be54
commit
714b97598f
24
.github/workflows/tests.yml
vendored
24
.github/workflows/tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user