Skip to content

Commit 7561463

Browse files
authored
Added dummy workflow tests for non laravel code changes (#135)
Add Dummy tests for all libraries except laravel-sqlcommenter. When we are adding status check to checkin code for PHP SQLCommenter, the same status check is added for all other libraries also, as this is a mono-repo. To avoid that, we are following a strategy of selective filtering instead and tests will have same name but selectively filter what to run on the basis of path.
1 parent d00fa1b commit 7561463

4 files changed

Lines changed: 38 additions & 4 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Integration Tests
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
8+
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
9+
pull_request:
10+
paths-ignore:
11+
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
12+
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
13+
jobs:
14+
integrationtests:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- run: 'echo "No build required" '

.github/workflows/laravel-integration-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Laravel Integration Tests
1+
name: Integration Tests
22
on:
33
push:
44
branches:
@@ -11,7 +11,7 @@ on:
1111
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
1212
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
1313
jobs:
14-
run-integrationtests:
14+
integrationtests:
1515
runs-on: ubuntu-latest
1616
container:
1717
image: kirschbaumdevelopment/laravel-test-runner:8.0

.github/workflows/laravel-unit-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Laravel Unit Tests
1+
name: Unit Tests
22
on:
33
push:
44
branches:
@@ -12,7 +12,7 @@ on:
1212
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
1313

1414
jobs:
15-
run-unittests:
15+
unittests:
1616
runs-on: ubuntu-latest
1717
container:
1818
image: kirschbaumdevelopment/laravel-test-runner:8.0

.github/workflows/unit-tests.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Unit Tests
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
8+
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
9+
pull_request:
10+
paths-ignore:
11+
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
12+
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
13+
jobs:
14+
unittests:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- run: 'echo "No build required" '

0 commit comments

Comments
 (0)