Skip to content

Commit 265919d

Browse files
Merge pull request #12 from 2002Bishwajeet/feat-test-workflow
feat: test Workflow
2 parents fcd29f4 + 8b27f42 commit 265919d

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Tests"
2+
3+
on: [pull_request,push]
4+
5+
6+
jobs:
7+
test:
8+
name: "Unit & E2E Test"
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 2
15+
- name: Run Tests
16+
run: |
17+
docker run --rm --interactive -v $PWD:/app composer sh -c \
18+
"composer install --profile --ignore-platform-reqs && composer test"
19+

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
},
1010
"scripts": {
1111
"lint": "./vendor/bin/pint --test",
12-
"format": "./vendor/bin/pint"
12+
"format": "./vendor/bin/pint",
13+
"test": "./vendor/bin/phpunit --configuration phpunit.xml"
1314
},
1415
"require": {
1516
"php": ">=7.4"

0 commit comments

Comments
 (0)