Skip to content

Merge pull request #169 from novaforgood/Max/block #53

Merge pull request #169 from novaforgood/Max/block

Merge pull request #169 from novaforgood/Max/block #53

Workflow file for this run

name: Hasura migrations (DEV)
on:
push:
branches:
- dev
paths:
- "hasura/**"
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: 14.x
cache: "npm"
- name: Install Hasura CLI
run: npm install --global hasura-cli
- 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 }}