Skip to content

Commit

Permalink
Added dummy workflow tests for non laravel code changes (#135)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Thiyagu55 authored Jun 17, 2022
1 parent d00fa1b commit 7561463
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Integration Tests
on:
push:
branches:
- master
paths-ignore:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
pull_request:
paths-ignore:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
jobs:
integrationtests:
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required" '
4 changes: 2 additions & 2 deletions .github/workflows/laravel-integration-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Laravel Integration Tests
name: Integration Tests
on:
push:
branches:
Expand All @@ -11,7 +11,7 @@ on:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
jobs:
run-integrationtests:
integrationtests:
runs-on: ubuntu-latest
container:
image: kirschbaumdevelopment/laravel-test-runner:8.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/laravel-unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Laravel Unit Tests
name: Unit Tests
on:
push:
branches:
Expand All @@ -12,7 +12,7 @@ on:
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**

jobs:
run-unittests:
unittests:
runs-on: ubuntu-latest
container:
image: kirschbaumdevelopment/laravel-test-runner:8.0
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Unit Tests
on:
push:
branches:
- master
paths-ignore:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
pull_request:
paths-ignore:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
jobs:
unittests:
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required" '

0 comments on commit 7561463

Please sign in to comment.