Skip to content

Commit

Permalink
last dependencies cache v5
Browse files Browse the repository at this point in the history
  • Loading branch information
datguychen committed Nov 9, 2023
1 parent a9eb7d9 commit b506747
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/CronWorkflow-UpdateCache.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: E2E / Sanity / Cron / Update Cache
name: E2E / Cron / Update Cache

on:
schedule:
- cron: '0 6 */7 * *'
schedule:
- cron: '0 6 */7 * *'


jobs:
Portfolio_E2E_Cron_Main:
Portfolio_E2E_Cron_Update_Cache:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
Expand All @@ -16,13 +16,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci
- name: Install Playwright
run: npx playwright install --with-deps chromium
- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Get node version
id: node
Expand All @@ -36,4 +29,7 @@ jobs:
path: |
**/node_modules
key: basekey-test

- name: Run vercel tests
run: npx playwright test --grep "@vercel" --project="Chrome_With_Media"

2 changes: 1 addition & 1 deletion .github/workflows/CronWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:


- name: Run core tests
run: npx playwright test --grep "@core" --project="Chrome_With_Media"
run: npx playwright test --grep "@vercel" --project="Chrome_With_Media"

- name: Upload test results
if: always()
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/PushWorkflow-UpdateCache.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# name: E2E / Sanity / Push / Update Cache

# on:
# push:
# branches:
# - main
# schedule:
# - cron: '0 6 */7 * *'


# jobs:
Expand Down

0 comments on commit b506747

Please sign in to comment.