From 4a9723df48e23b45b53b5ef930b6e9b683b48464 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Thu, 25 May 2023 13:34:38 -0700 Subject: [PATCH] test: run extension tests in tests_primary (#23245) --- .github/workflows/tests_primary.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml index 7b9eb93636..43ed9b9428 100644 --- a/.github/workflows/tests_primary.yml +++ b/.github/workflows/tests_primary.yml @@ -252,6 +252,34 @@ jobs: - run: npm run test-web if: always() + test_vscode_extension: + name: VSCode Extension + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm ci + env: + DEBUG: pw:install + - run: npm run build + - run: npx playwright install chromium + - name: Checkout extension + run: git clone https://github.com/microsoft/playwright-vscode.git + - name: Print extension revision + run: git rev-parse HEAD + working-directory: ./playwright-vscode + - name: Remove @playwright/test from extension dependencies + run: node -e "const p = require('./package.json'); delete p.devDependencies['@playwright/test']; fs.writeFileSync('./package.json', JSON.stringify(p, null, 2));" + working-directory: ./playwright-vscode + - name: Build extension + run: npm install && npm run build + working-directory: ./playwright-vscode + - name: Run extension tests + run: npm run test -- --workers=1 + working-directory: ./playwright-vscode + test-package-installations: name: "Installation Test ${{ matrix.os }}" runs-on: ${{ matrix.os }}