Skip to content

Commit

Permalink
update GH actions pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
dualcnhq committed Oct 25, 2024
1 parent e165c74 commit edfc8e5
Show file tree
Hide file tree
Showing 9 changed files with 123 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/auto-renew-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
branches: [ main, master ]

pull_request:
branches: [ main, master, collated-fix-me ]

branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/books-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Books 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 books tests
run: npx browserstack-node-sdk playwright test tests/books
29 changes: 29 additions & 0 deletions .github/workflows/collection-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Collection 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 collection tests
run: npx browserstack-node-sdk playwright test tests/collection
29 changes: 29 additions & 0 deletions .github/workflows/details-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Details 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 books tests
run: npx browserstack-node-sdk playwright test tests/details
2 changes: 1 addition & 1 deletion .github/workflows/donation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ jobs:
run: npx playwright install --with-deps

- name: Run Donation Tests
run: npm run test -- --test=donation
run: npx browserstack-node-sdk playwright test tests/donation
4 changes: 2 additions & 2 deletions .github/workflows/home-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ main, master ]

pull_request:
branches: [ main, master, collated-fix-me ]
branches: [ main, master ]

jobs:
test:
Expand All @@ -26,4 +26,4 @@ jobs:
run: npx playwright install --with-deps

- name: Run home tests
run: npm run test -- --test=home
run: npx browserstack-node-sdk playwright test tests/home
29 changes: 29 additions & 0 deletions .github/workflows/profile-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Profile 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 profile tests
run: npx browserstack-node-sdk playwright test tests/profile
2 changes: 1 addition & 1 deletion .github/workflows/run-browserstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ main, master ]

pull_request:
branches: [ main, master, collated-fix-me ]
branches: [ main, master ]

jobs:
test:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/search-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [ main, master ]

pull_request:
branches: [ main, master, collated-fix-me ]
branches: [ main, master ]

jobs:
test:
Expand All @@ -26,4 +26,4 @@ jobs:
run: npx playwright install --with-deps

- name: Run search tests
run: npm run test -- --test=search
run: npx browserstack-node-sdk playwright test tests/search

0 comments on commit edfc8e5

Please sign in to comment.