Skip to content

Commit

Permalink
Merge pull request #287 from TransbankDevelopers/refactor/update-buil…
Browse files Browse the repository at this point in the history
…d-yml

refactor: update build yml
  • Loading branch information
gasspper authored Jul 4, 2024
2 parents b1fe9f0 + 2f42ddc commit 7a96b44
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,13 @@ jobs:
php-versions: [8.2]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup cache environment
id: extcache
uses: shivammathur/cache-extensions@v1
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xml, ctype, iconv, pcov
key: cache-v1
uses: actions/[email protected]
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, xml, ctype, iconv, pcov
php-version: 8.2
extensions: mbstring, json, curl, pcov
coverage: pcov
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ hashFiles('**/composer.lock') }}
restore-keys: composer-
- name: Install dependencies
run: composer install --no-interaction --no-progress --prefer-dist
- name: Run PHPUnit tests
Expand Down

0 comments on commit 7a96b44

Please sign in to comment.