Skip to content

fix: NEXT_PUBLIC_API_ROUTE_PREFIX not set during the pwa image building #3104

fix: NEXT_PUBLIC_API_ROUTE_PREFIX not set during the pwa image building

fix: NEXT_PUBLIC_API_ROUTE_PREFIX not set during the pwa image building #3104

Workflow file for this run

name: QA
on:
push:
branches:
- master
- '[1-9].[0-9]+.x'
- 'feature-[a-z]+'
pull_request: ~
jobs:
qa:
name: Code-Quality-Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout Gally admin
uses: actions/checkout@v3
with:
repository: 'Elastic-Suite/gally-admin'
ref: main
path: front/gally-admin
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- uses: php-actions/composer@v6
with:
php_version: "8.3"
args: --working-dir api --no-scripts
# PHP-CS-Fixer cannot run locally since src/Gally has been moved elsewhere
#- name: PHP-CS-Fixer
# working-directory: api
# run: ./vendor/bin/php-cs-fixer fix --path-mode=intersection --diff --dry-run src/Gally
# PHPStan cannot run locally since src/Gally has been moved elsewhere
#- name: PHPStan
# working-directory: api
# run: ./vendor/bin/phpstan analyse src/Gally
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache Yarn dependencies
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Yarn Install dependencies
working-directory: front
run: yarn --frozen-lockfile
- name: Yarn build
working-directory: front/gally-admin
run: yarn build
- name: Typescript
working-directory: front
run: yarn typescript:ci
- name: EsLint
working-directory: front
run: yarn eslint:ci
- name: Prettier
working-directory: front
run: yarn prettier:ci