Skip to content

Commit

Permalink
ci settings
Browse files Browse the repository at this point in the history
  • Loading branch information
oliwierptak committed Aug 1, 2023
1 parent 82513ad commit 59ff956
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build and run tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: docker-compose run cli composer install
- name: Run the tests
run: docker-compose run cli composer tests
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: php
php:
- 7.4
- 8.0
- 8.2

before_script:
- composer --prefer-source install
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -662,3 +662,6 @@ Popo:
]}}
```

[link-packagist]: https://packagist.org/packages/popo/generator
[link-travis]: https://travis-ci.org/popo/generator
[link-author]: https://github.com/oliwierptak/popo
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"chmod +x bin/popo",
"chmod +x bin/docker-popo"
],
"test": [
"tests": [
"vendor/bin/phpunit --no-coverage --testdox --group unit,functional"
],
"test-c": [
"tests-c": [
"XDEBUG_MODE=coverage vendor/bin/phpunit --testdox --group unit,functional"
],
"report": [
Expand Down

0 comments on commit 59ff956

Please sign in to comment.