-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.11 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test & Deploy
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
name: Deploy to render.com
runs-on: ubuntu-latest
steps:
- name: Deploy to production
uses: johnbeynon/[email protected]
with:
api-key: ${{ secrets.RENDER_TOKEN }}
service-id: ${{ secrets.RENDER_SERVICE_ID }}
watch:
name: Monitor Render Deployment
runs-on: ubuntu-latest
steps:
- name: Wait for Render Deployment
uses: bounceapp/[email protected]
with:
render-token: ${{ secrets.RENDER_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
service-id: ${{ secrets.RENDER_SERVICE_ID }}
retries: 20
wait: 16000
sleep: 30000
end-to-end:
name: End to End Tests
runs-on: ubuntu-latest
needs: [deploy, watch]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Run e2e tests
run: npm run staging:test:e2e