Skip to content

Commit

Permalink
Merge pull request #461 from munierujp/fix-test-action
Browse files Browse the repository at this point in the history
testアクションを修正
  • Loading branch information
NEKOYASAN authored Jan 6, 2024
2 parents 9d7c03e + 18d1e47 commit 8bf0e59
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# see https://playwright.dev/docs/ci-intro
name: e2e
on: push

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Install dependencies
run: yarn install
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn test:e2e
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
with:
node-version-file: '.node-version'
- run: yarn install
- run: yarn test
- run: yarn test:unit
2 changes: 1 addition & 1 deletion test-e2e/kamimap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test';
import { chromium } from 'playwright';

test('URL Check', async () => {
const browser = await chromium.launch({ headless: false });
const browser = await chromium.launch();
const context = await browser.newContext();
const page = await context.newPage();

Expand Down

0 comments on commit 8bf0e59

Please sign in to comment.