Add building assets in a non-JS tests

This commit is contained in:
Jakub Tobiasz 2022-09-20 09:35:51 +02:00
parent 3bb6fb8cf3
commit bafa38eec0
No known key found for this signature in database
GPG key ID: 6434250CB3525233

View file

@ -242,6 +242,7 @@ jobs:
php: ["8.0"]
symfony: ["^5.4"]
postgres: ["13.3"]
node: ["16.x"]
env:
APP_ENV: test_cached
@ -299,6 +300,40 @@ jobs:
name: Install PHP dependencies
run: composer update --no-interaction --no-scripts
-
name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "${{ matrix.node }}"
-
name: Get Yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
-
name: Cache Yarn
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ matrix.node }}-yarn-${{ hashFiles('**/package.json **/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}-yarn-
-
name: Install JS dependencies
run: yarn install
-
name: Validate Yarn packages
run: yarn check
-
name: Build assets
run: |
bin/console assets:install public -vvv
yarn encore production
-
name: Dump the environment
run: |
@ -357,6 +392,7 @@ jobs:
symfony: ["^5.4"]
mariadb: ["10.4.10"]
dbal: ["2", "3"]
node: ["16.x"]
env:
APP_ENV: test_cached
@ -420,6 +456,40 @@ jobs:
name: Install PHP dependencies
run: composer update --no-interaction --no-scripts
-
name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "${{ matrix.node }}"
-
name: Get Yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
-
name: Cache Yarn
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ matrix.node }}-yarn-${{ hashFiles('**/package.json **/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}-yarn-
-
name: Install JS dependencies
run: yarn install
-
name: Validate Yarn packages
run: yarn check
-
name: Build assets
run: |
bin/console assets:install public -vvv
yarn encore production
-
name: Dump the environment
run: |
@ -500,6 +570,7 @@ jobs:
mysql: ["5.7", "8.0"]
twig: ["3.x"]
dbal: ["3"]
node: ["16.x"]
include:
-
php: "8.0"
@ -586,6 +657,40 @@ jobs:
name: Install PHP dependencies
run: composer update --no-interaction --no-scripts
-
name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "${{ matrix.node }}"
-
name: Get Yarn cache directory
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
-
name: Cache Yarn
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ matrix.node }}-yarn-${{ hashFiles('**/package.json **/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node }}-yarn-
-
name: Install JS dependencies
run: yarn install
-
name: Validate Yarn packages
run: yarn check
-
name: Build assets
run: |
bin/console assets:install public -vvv
yarn encore production
-
name: Dump the environment
run: |