-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.33 KB
/
dev.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
name: Hasura migrations (DEV)
on:
push:
branches:
- dev
paths:
- "hasura/**"
- ".github/workflows/prod.yml"
concurrency: dev_environment
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
cache: "npm"
- name: Install Hasura CLI
run: npm install --global [email protected]
- name: Apply Metadata
working-directory: ./hasura
run: hasura metadata apply --endpoint ${{ secrets.DEV_HASURA_ENDPOINT }} --admin-secret ${{ secrets.DEV_HASURA_ADMIN_SECRET }}
- name: Print Migration Status
working-directory: ./hasura
run: hasura migrate status --database-name mentorcenter --endpoint ${{ secrets.DEV_HASURA_ENDPOINT }} --admin-secret ${{ secrets.DEV_HASURA_ADMIN_SECRET }}
- name: Apply Migrations
working-directory: ./hasura
run: hasura migrate apply --all-databases --endpoint ${{ secrets.DEV_HASURA_ENDPOINT }} --admin-secret ${{ secrets.DEV_HASURA_ADMIN_SECRET }}
- name: hasura metadata reload
working-directory: ./hasura
run: hasura metadata reload --endpoint ${{ secrets.DEV_HASURA_ENDPOINT }} --admin-secret ${{ secrets.DEV_HASURA_ADMIN_SECRET }}