-
Notifications
You must be signed in to change notification settings - Fork 145
58 lines (56 loc) · 1.87 KB
/
develop-deployment.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
name: Test/Deploy Develop
on:
push:
branches: [develop]
jobs:
build-test:
if: github.event.pull_request.draft == false
runs-on: neodash-runners
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Creating Neo4j Container
run: |
chmod +x ./scripts/docker-neo4j-initializer/docker-neo4j.sh
./scripts/docker-neo4j-initializer/docker-neo4j.sh
sleep 30s
chmod +x ./scripts/docker-neo4j-initializer/start-movies-db.sh
./scripts/docker-neo4j-initializer/start-movies-db.sh
- run: yarn install
- name: Eslint check
run: yarn run lint
- name: Cypress run
uses: cypress-io/github-action@v4
with:
build: yarn run build
start: yarn run prod
wait-on: "http://localhost:3000"
browser: chrome
build-s3:
needs: build-test
runs-on: neodash-runners
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn run build-minimal
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1
- run: curl ${{ secrets.INDEX_HTML_DEPLOYMENT_URL }} > dist/index.html
- run: aws s3 rm s3://neodash-test.graphapp.io/ --recursive && aws s3 sync dist s3://neodash-test.graphapp.io/ --acl public-read