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:
|
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:
|
||||||
|
|
7
.github/workflows/unit.yml
vendored
7
.github/workflows/unit.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue