-
Notifications
You must be signed in to change notification settings - Fork 26
75 lines (63 loc) · 1.71 KB
/
push_dev.workflow.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Dev branches push checks
on:
push:
branches:
- 4-dev
env:
NODE_VERSION: '20'
jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Run linter
uses: ./.github/actions/lint
e2e-tests:
name: E2E Cypress tests
needs: ['lint']
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Start Kuzzle
run: docker compose up --wait
- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm run preview
browser: chrome
- name: Upload screenshots
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-snapshots
path: test/e2e/failed-test
deploy-staging:
name: Deploy Admin Console to staging - next-console.kuzzle.io
needs: ['e2e-tests']
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Deploy to S3
uses: ./.github/actions/deploy-to-s3
with:
REGION: us-west-2
S3_BUCKET: next.console.kuzzle.io
CLOUDFRONT_ID: E35G0B414M3IWU
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}