mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
feat (build): use dedicated GitHub actions to install packages (#1289)
This commit is contained in:
parent
5a611b9a0d
commit
0250970de0
2 changed files with 18 additions and 13 deletions
24
.github/workflows/e2e.yml
vendored
24
.github/workflows/e2e.yml
vendored
|
@ -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:
|
||||
|
|
7
.github/workflows/unit.yml
vendored
7
.github/workflows/unit.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue