Merge pull request #204 from novaforgood/Max/email-whitelist #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |