From bbe4b603ce54ea41b22892c0f07375e6b24b9f1c Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Mon, 6 Nov 2023 16:41:20 -0500 Subject: [PATCH] debugging --- .github/workflows/test.yaml | 147 ------------------ .../Functional/LiveComponentDemosTest.php | 7 +- 2 files changed, 4 insertions(+), 150 deletions(-) delete mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml deleted file mode 100644 index 82b0951dc7a..00000000000 --- a/.github/workflows/test.yaml +++ /dev/null @@ -1,147 +0,0 @@ -name: Symfony UX - -on: - push: - paths-ignore: - - 'ux.symfony.com/**' - pull_request: - paths-ignore: - - 'ux.symfony.com/**' - -jobs: - coding-style-php: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: shivammathur/setup-php@v2 - with: - php-version: '8.1' - - uses: ramsey/composer-install@v2 - - name: php-cs-fixer - run: ./vendor/bin/php-cs-fixer fix --dry-run --diff - - coding-style-js: - name: JavaScript Coding Style - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-yarn- - - run: yarn --frozen-lockfile - - run: yarn check-lint - - run: yarn check-format - - js-dist-current: - name: Check for UnBuilt JS Dist Files - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-yarn- - - run: yarn --frozen-lockfile && yarn build - - name: Check if js dist files are current - id: changes - run: | - echo "STATUS=$(git status --porcelain)" >> $GITHUB_OUTPUT - - - name: No changes found - if: steps.changes.outputs.STATUS == '' - run: | - echo "git status is clean" - - name: Changes were found - if: steps.changes.outputs.STATUS != '' - run: | - echo "JS dist files need to be rebuilt" - echo "${{ steps.changes.outputs.STATUS }}" - exit 1 - - tests-php-components: - runs-on: ubuntu-latest - outputs: - components: ${{ steps.components.outputs.components }} - steps: - - uses: actions/checkout@v3 - - - id: components - run: | - components=$(tree src -J -d -L 1 | jq -c '.[0].contents | map(.name)') - echo "$components" - echo "components=$components" >> $GITHUB_OUTPUT - - tests-php: - runs-on: ubuntu-latest - needs: tests-php-components - strategy: - fail-fast: false - matrix: - php-version: ['8.1', '8.2'] - include: - - php-version: '8.1' - dependency-version: 'lowest' - - php-version: '8.2' - dependency-version: 'highest' - component: ${{ fromJson(needs.tests-php-components.outputs.components )}} - exclude: - - component: Swup # has no tests - - component: Turbo # has its own workflow (test-turbo.yml) - - component: Typed # has no tests - - steps: - - uses: actions/checkout@v3 - - - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - - - name: Install root packages - uses: ramsey/composer-install@v2 - with: - working-directory: ${{ github.workspace }} - dependency-versions: ${{ matrix.dependency-version }} - - - name: Build root packages - run: php .github/build-packages.php - working-directory: ${{ github.workspace }} - - - name: Install ${{ matrix.component }} packages - uses: ramsey/composer-install@v2 - with: - working-directory: "src/${{ matrix.component }}" - dependency-versions: ${{ matrix.dependency-version }} - - - name: ${{ matrix.component }} Tests - working-directory: "src/${{ matrix.component }}" - run: vendor/bin/simple-phpunit - - tests-js: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 - id: yarn-cache - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }} - restore-keys: | - ${{ runner.os }}-yarn- - - run: yarn --frozen-lockfile - - run: yarn test diff --git a/ux.symfony.com/tests/Functional/LiveComponentDemosTest.php b/ux.symfony.com/tests/Functional/LiveComponentDemosTest.php index 7f0352ba5df..f3108cf3ffe 100644 --- a/ux.symfony.com/tests/Functional/LiveComponentDemosTest.php +++ b/ux.symfony.com/tests/Functional/LiveComponentDemosTest.php @@ -42,11 +42,12 @@ public function testDemoPagesAllLoad(LiveDemo $liveDemo): void { $router = self::bootKernel()->getContainer()->get('router'); $url = $router->generate($liveDemo->getRoute()); -// $this->browser() -// ->visit($url) + $this->browser() + ->visit($url) + ->dump() // ->assertSuccessful() // ->assertSeeIn('h1', $liveDemo->getName()) -// ; + ; } public function getSmokeTests(): \Generator