feat (build): use dedicated GitHub actions to install packages (#1289)

This commit is contained in:
Phan An 2021-03-10 10:18:48 +01:00 committed by GitHub
parent 5a611b9a0d
commit 0250970de0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 13 deletions

View file

@ -16,19 +16,21 @@ jobs:
with:
php-version: 7.4
tools: composer:v2
extensions: pdo_sqlite
- name: Install PHP dependencies
run: |
composer install --prefer-dist --no-interaction --no-scripts --no-progress
php artisan key:generate --quiet
- name: Set up Node
uses: actions/setup-node@v2
uses: ramsey/composer-install@v1
with:
node-version: 14
- name: Install submodule dependencies
working-directory: ./resources/assets
run: yarn install
- name: Yarn install and lint
run: yarn install && yarn lint
composer-options: --prefer-dist
- name: Generate app key
run: php artisan key:generate --quiet
- name: Install JavaScript dependencies
uses: bahmutov/npm-install@v1
with:
working-directory: |
./resources/assets
.
- name: Lint
run: yarn lint
- name: Run E2E tests
uses: cypress-io/github-action@v2
with:

View file

@ -15,8 +15,11 @@ jobs:
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: xdebug
- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-scripts --no-progress
extensions: pdo_sqlite, zip, gd
- name: Install PHP dependencies
uses: ramsey/composer-install@v1
with:
composer-options: --prefer-dist
- name: Generate app key
run: php artisan key:generate --quiet
- name: Run code style checker