fix(#1369486): ensure category scope config request is awaited in e2e… #3532
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: QA | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - '[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@v4 | |
| 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@v4 | |
| 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 |