Skip to content

Commit f764042

Browse files
authored
Run e2e tests on another GH Actions job.
1 parent 56019bd commit f764042

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,30 @@ jobs:
274274
${{ github.workspace }}/packages/**/*.tgz
275275
${{ github.workspace }}/packages/serverless/dist-awslambda-layer/*.zip
276276
277+
job_playwright_test:
278+
name: Playwright E2E Tests
279+
needs: job_build
280+
runs-on: ubuntu-latest
281+
steps:
282+
- name: Check out current commit (${{ github.sha }})
283+
uses: actions/checkout@v2
284+
- name: Set up Node
285+
uses: actions/setup-node@v1
286+
- name: Check dependency cache
287+
uses: actions/cache@v2
288+
with:
289+
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
290+
key: ${{ needs.job_build.outputs.dependency_cache_key }}
291+
- name: Check build cache
292+
uses: actions/cache@v2
293+
with:
294+
path: ${{ env.CACHED_BUILD_PATHS }}
295+
key: ${{ env.BUILD_CACHE_KEY }}
296+
- name: Run Playwright tests
297+
run: |
298+
cd packages/browser
299+
yarn test:e2e
300+
277301
job_browserstack_test:
278302
name: BrowserStack
279303
needs: job_build

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"fix": "run-s fix:eslint fix:prettier",
7373
"fix:prettier": "prettier --write \"{src,test}/**/*.ts\"",
7474
"fix:eslint": "eslint . --format stylish --fix",
75-
"test": "run-s test:unit test:e2e",
75+
"test": "run-s test:unit",
7676
"test:unit": "jest --config test/unit/jest.config.js",
7777
"test:unit:watch": "jest --config test/unit/jest.config.js --watch",
7878
"test:integration": "test/integration/run.js",

0 commit comments

Comments
 (0)