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 5995cbd
Show file tree
Hide file tree
Showing 3 changed files with 16 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ 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
- Add install.mk

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

Expand Down
8 changes: 8 additions & 0 deletions make/install.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
##
## Installation and update
## -------
.PHONY: install
install: ## Install the project
composer install
make cc
echo "Install complete !"

0 comments on commit 5995cbd

Please sign in to comment.