Skip to content

Commit

Permalink
add GH workflows for other categories
Browse files Browse the repository at this point in the history
  • Loading branch information
dualcnhq committed Nov 20, 2024
1 parent 5dd08d5 commit 0f59337
Show file tree
Hide file tree
Showing 7 changed files with 163 additions and 26 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/about-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: About page tests

on:
push:
branches: [ main, master ]

pull_request:
branches: [ main, master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run about tests
run: npx playwright test tests/about
29 changes: 29 additions & 0 deletions .github/workflows/av-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: AV page tests

on:
push:
branches: [ main, master ]

pull_request:
branches: [ main, master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run av tests
run: npx playwright test tests/av
29 changes: 29 additions & 0 deletions .github/workflows/login-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Login page tests

on:
push:
branches: [ main, master ]

pull_request:
branches: [ main, master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run login tests
run: npx playwright test tests/login
29 changes: 29 additions & 0 deletions .github/workflows/music-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Music page tests

on:
push:
branches: [ main, master ]

pull_request:
branches: [ main, master ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Run music tests
run: npx playwright test tests/music
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ browserstackSetupConfig.json
playwright-browserstack-sdk.config*
performance-report.json
log/

.DS_Store
68 changes: 44 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.45.0",
"@playwright/test": "^1.49.0",
"@types/node": "^20.11.17",
"browserstack-node-sdk": "^1.34.23",
"dotenv": "^16.0.3",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"husky": "^8.0.3",
"minimist": "^1.2.8",
"playwright": "^1.45.0",
"prettier": "^3.0.0"
},
"eslintConfig": {
Expand Down

0 comments on commit 0f59337

Please sign in to comment.