Skip to content

Commit

Permalink
Change action phpunit and qa order and use make
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Fortunier committed Jan 8, 2024
1 parent 3de315a commit 56cd92e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,18 @@ jobs:
- name: Validate composer.json and composer.lock
run: composer validate

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install
run: composer install --prefer-dist

# —— QA ✔️‍️ ———————————————————————————————————————————————————————————————
- name: Qualimetry
run: make qa
run: make install

# —— Tests 🧪 ————————————————————————————————————————————————————————————
- name: Phpunit tests
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover coverage.xml
run: make coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# —— QA ✔️‍️ ———————————————————————————————————————————————————————————————
- name: Qualimetry
run: make qa

- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v1
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ CHANGELOG for 1.x
- Changes config of phpcs, phpstan and phpunit
- Comment base test because it doesn't work with the new `smartbooster/standard-bundle` implementation
- Fix some style because of the new `smartbooster/standard-bundle` implementation
- Change action phpunit and qa order and use make, delete cache steps

## v1.5.0 - (2024-01-04)

Expand Down

0 comments on commit 56cd92e

Please sign in to comment.