Skip to content

Feature/fix to use correct syntax #9

Feature/fix to use correct syntax

Feature/fix to use correct syntax #9

name: Integration Tests
on:
# workflow_dispatch:
pull_request:
branches:
- '**'
types: [ opened, synchronize, reopened ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Test 1 - default
id: test_1
uses: AbsaOSS/filename-inspector@feature/fix-to-use-correct-syntax
with:
name-patterns: '*UnitTest.*,*IntegrationTest.*'
paths: '**/src/test/java/**,**/src/test/scala/**'
- name: Test 2 - custom with multiple line inputs
id: test_2
uses: AbsaOSS/filename-inspector@feature/fix-to-use-correct-syntax
with:
name-patterns: |
*UnitTest.*,
*IntegrationTest.*
paths: |
**/src/test/java/**,
**/src/test/scala/**
excludes: |
src/exclude_dir/*.py,
tests/exclude_file.py
report-format: 'console'
verbose-logging: 'true'
fail-on-violation: 'false'
- name: Check output violation count from Test 1
run: |
violation_count="${{ steps.test_1.outputs.violation-count }}"
echo "Test 1 violation count: $violation-count"
if [ "$violation-count" != "5" ]; then
echo "Wrong amount of violations detected in 'Test 1'"
exit 1
fi
- name: Check output violation count from Test 2
run: |
violation_count="${{ steps.test_2.outputs.violation-count }}"
echo "Test 2 violation count: $violation-count"
if [ "$violation-count" != "5" ]; then
echo "Wrong amount of violations detected in 'Test 2'"
exit 1
fi