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

View file

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