Skip to content

Commit

Permalink
fix: test in cron
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Oct 30, 2024
1 parent 3ba1421 commit ee3e7c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/copilot-test-automatically.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,22 @@ on:
- cron: '0 8 * * *'
workflow_dispatch:

permissions:
actions: write

jobs:
dispatch-deploy:
dispatch-test:
runs-on: ubuntu-latest
name: Setup Deploy
name: Setup Test
steps:
- name: dispatch deploy by tag
if: ${{ github.event_name == 'push' }}
- name: dispatch test by tag
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: deploy.yml
- name: dispatch deploy by schedule
workflow: copilot-test.yml
- name: dispatch test by schedule
if: ${{ github.event_name == 'schedule' }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: deploy.yml
workflow: copilot-test.yml
ref: canary
5 changes: 3 additions & 2 deletions .github/workflows/copilot-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
playwright-install: true
electron-install: false
full-cache: true

Expand Down Expand Up @@ -94,7 +95,7 @@ jobs:

copilot-e2e-test:
name: Server Copilot E2E Test
runs-on: [self-hosted, copilot-ci]
runs-on: ubuntu-latest
env:
DISTRIBUTION: web
DATABASE_URL: postgresql://affine:affine@localhost:5432/affine
Expand All @@ -119,8 +120,8 @@ jobs:
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
corepack-install: true
playwright-install: true
electron-install: false
hard-link-nm: false

- name: Download server-native.node
Expand Down

0 comments on commit ee3e7c0

Please sign in to comment.