Skip to content

Commit

Permalink
Tweak GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mbardelmeijer committed Mar 18, 2024
1 parent 5ca395a commit dac367e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/larastan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ jobs:
path: ${{ steps.cache-composer.outputs.dir }}
key: ${{ runner.os }}-${{ github.ref_name }}-composer-${{ hashFiles('**/composer.lock') }}

- name: Copy .env to .env.example
run: cp .env.example .env

- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}

- name: Copy .env
run: cp .env.example .env

- name: Generate key
- name: Generate application key
run: php artisan key:generate

- name: Setup problem matchers
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
path: ${{ steps.cache-composer.outputs.dir }}
key: ${{ runner.os }}-${{ github.ref_name }}-composer-${{ hashFiles('**/composer.lock') }}

- name: Copy .env.example to .env
run: cp .env.example .env

- name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist
env:
Expand All @@ -43,10 +46,8 @@ jobs:
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}

- name: Prepare Laravel Application
run: |
cp .env.example .env
php artisan key:generate
- name: Generate application key
run: php artisan key:generate

- name: Run tests
run: vendor/bin/phpunit
Expand Down

0 comments on commit dac367e

Please sign in to comment.