-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.66 KB
/
integration_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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: |
echo "Test 1 violation count: ${{ steps.test_1.outputs.violation-count }}"
if [ "${{ steps.test_1.outputs.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: |
echo "Test 2 violation count: ${{ steps.test_2.outputs.violation-count }}"
if [ "${{ steps.test_2.outputs.violation-count }}" != "5" ]; then
echo "Wrong amount of violations detected in 'Test 2'"
exit 1
fi