Skip to content

Commit

Permalink
ci: add nightly playwright test workflow template
Browse files Browse the repository at this point in the history
  • Loading branch information
typeWolffo committed Aug 9, 2024
1 parent 597f027 commit 56e5411
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 26 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/nighty-playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# uncomment when staging will be ready

# name: Nightly Playwright Tests

# on:
# schedule:
# - cron: "0 1 * * *"
# workflow_dispatch:

# jobs:
# playwright:
# name: Playwright Tests
# runs-on: ubuntu-latest
# container:
# image: mcr.microsoft.com/playwright:v1.45.3-jammy
# defaults:
# run:
# working-directory: ./apps/web/
# steps:
# - uses: actions/checkout@v4
# - uses: pnpm/action-setup@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 20.15.0
# - name: Install dependencies
# run: pnpm install
# - name: Run your tests
# run: pnpm playwright test
# env:
# HOME: /root
24 changes: 1 addition & 23 deletions .github/workflows/pr-frontend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Frontend Pull Request Check
on:
pull_request:
branches:
- '*'
- "*"
paths:
- apps/web/**
jobs:
Expand Down Expand Up @@ -67,25 +67,3 @@ jobs:

- name: Run Vite tests
run: pnpm test

playwright:
needs: build
name: Playwright Tests
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.45.3-jammy
defaults:
run:
working-directory: ./apps/web/
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20.15.0
- name: Install dependencies
run: pnpm install
- name: Run your tests
run: pnpm playwright test
env:
HOME: /root
2 changes: 0 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ pnpm lint

pnpm run test:web
pnpm run test:api

exit 1
2 changes: 1 addition & 1 deletion apps/web/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
commonjs: true,
es6: true,
},
ignorePatterns: ["!**/.server", "!**/.client", "**/ui/**"],
ignorePatterns: ["!**/.server", "!**/.client"],

// Base config
extends: ["eslint:recommended"],
Expand Down

0 comments on commit 56e5411

Please sign in to comment.