Skip to content

Commit

Permalink
Merge pull request #155 from leroy-merlin-br/chore/improve-ci-php-ver…
Browse files Browse the repository at this point in the history
…sions

chore(ci): improve php versions
  • Loading branch information
williancs authored Sep 20, 2022
2 parents e193a3b + ffdae8d commit 3973838
Show file tree
Hide file tree
Showing 56 changed files with 1,592 additions and 1,330 deletions.
57 changes: 41 additions & 16 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,47 @@
on: [push]
name: Tests
name: Continuous Integration
on:
- pull_request
- push
jobs:
setup-and-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
testing:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
php:
- "7.3"
- "7.4"
- "8.0"
- "8.1"
mongo:
- "3.6"
- "4.0"
- "4.2"
- "4.4"
services:
mongodb:
image: mongo:${{ matrix.mongo }}
ports:
- "27017:27017"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Build containers
run: docker-compose build --build-arg UID=$(id -u) --build-arg GID=$(id -g)
- name: PHP setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Composer install
run: docker-compose run --rm -T php composer install --no-interaction --no-progress
- name: Composer
uses: ramsey/composer-install@v2

- name: Run Code Standards
run: docker-compose run --rm -T php vendor/bin/phpcs
- name: Run Code Standards
run: vendor/bin/phpcs

- name: Run Tests
run: docker-compose run --rm -T php vendor/bin/phpunit
- name: Run Tests
run: vendor/bin/phpunit

- name: Report Coverage
run: CODACY_PROJECT_TOKEN=${{ secrets.CODACY_PROJECT_TOKEN }} bash <(curl -Ls https://coverage.codacy.com/get.sh) report
- name: Report Coverage
run: CODACY_PROJECT_TOKEN=${{ secrets.CODACY_PROJECT_TOKEN }} bash <(curl -Ls https://coverage.codacy.com/get.sh) report
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
}
],
"require": {
"php": ">=7.1",
"leroy-merlin-br/mongolid": "v3.1.0",
"php": ">=7.3",
"leroy-merlin-br/mongolid": "v3.2.0",
"illuminate/support": "^5.4 || ^6.0 || ^7.0 || ^8.0",
"illuminate/auth": "^5.4 || ^6.0 || ^7.0 || ^8.0",
"illuminate/queue": "^5.4 || ^6.0 || ^7.0 || ^8.0"
},
"require-dev": {
"phpunit/phpunit": "^8.0",
"orchestra/testbench": "^6.0",
"mockery/mockery": "^1.0",
"leroy-merlin-br/coding-standard": "^1.0.1"
"phpunit/phpunit": "^9.5.24",
"orchestra/testbench": "^6.25.0",
"mockery/mockery": "^1.5.1",
"leroy-merlin-br/coding-standard": "^3.0.2"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 3973838

Please sign in to comment.