test: add E2E testing

This commit is contained in:
Kim, Jimin 2023-07-29 09:04:23 +09:00
parent e781526337
commit ea89e17495
Signed by: pomp
GPG key ID: CE1DDB8A4A765403
9 changed files with 147 additions and 7 deletions

View file

@ -2,12 +2,10 @@
name: Deploy pages
on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
workflow_run:
workflows: ["Test"]
types:
- completed
jobs:
deploy:
if: ${{ github.repository_owner == 'developomp' }}

41
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,41 @@
name: Test
on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
deploy:
if: ${{ github.repository_owner == 'developomp' }}
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Install playwright browsers
run: npx playwright install --with-deps
- name: Run tests
run: pnpm test:e2e
- uses: actions/upload-artifact@v3
with:
name: playwright-report
path: |
apps/*/playwright-report