Temporarily skip on-pr CI checks

This commit is contained in:
Prathamesh Musale 2022-05-10 16:37:06 +05:30
parent d0f5110dec
commit 526bda7090

View File

@ -3,61 +3,61 @@ name: Docker Build
on: [pull_request] on: [pull_request]
jobs: jobs:
concise_migration_diff: # concise_migration_diff:
name: Verify concise migration and generated schema # name: Verify concise migration and generated schema
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- name: Run docker concise migration build # - name: Run docker concise migration build
run: make docker-concise-migration-build # run: make docker-concise-migration-build
- name: Run database # - name: Run database
run: docker-compose -f docker-compose.test.yml up -d test-db # run: docker-compose -f docker-compose.test.yml up -d test-db
- name: Test concise migration # - name: Test concise migration
run: | # run: |
sleep 10 # sleep 10
docker run --rm --network host -e DATABASE_USER=vdbm -e DATABASE_PASSWORD=password \ # docker run --rm --network host -e DATABASE_USER=vdbm -e DATABASE_PASSWORD=password \
-e DATABASE_HOSTNAME=127.0.0.1 -e DATABASE_PORT=8066 -e DATABASE_NAME=vulcanize_testing \ # -e DATABASE_HOSTNAME=127.0.0.1 -e DATABASE_PORT=8066 -e DATABASE_NAME=vulcanize_testing \
vulcanize/concise-migration-build # vulcanize/concise-migration-build
- name: Verify schema is latest # - name: Verify schema is latest
run: | # run: |
PGPASSWORD="password" pg_dump -h localhost -p 8066 -U vdbm vulcanize_testing --no-owner --schema-only > ./db/migration_schema.sql # PGPASSWORD="password" pg_dump -h localhost -p 8066 -U vdbm vulcanize_testing --no-owner --schema-only > ./db/migration_schema.sql
./scripts/check_diff.sh ./db/migration_schema.sql db/schema.sql # ./scripts/check_diff.sh ./db/migration_schema.sql db/schema.sql
incremental_migration_diff: # incremental_migration_diff:
name: Compare conscise migration schema with incremental migration. # name: Compare conscise migration schema with incremental migration.
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- name: Run database # - name: Run database
run: docker-compose -f docker-compose.test.yml up -d test-db statediff-migrations # run: docker-compose -f docker-compose.test.yml up -d test-db statediff-migrations
- name: Test incremental migration # - name: Test incremental migration
run: | # run: |
sleep 10 # sleep 10
docker run --rm --network host -e DATABASE_USER=vdbm -e DATABASE_PASSWORD=password \ # docker run --rm --network host -e DATABASE_USER=vdbm -e DATABASE_PASSWORD=password \
-e DATABASE_HOSTNAME=127.0.0.1 -e DATABASE_PORT=8066 -e DATABASE_NAME=vulcanize_testing \ # -e DATABASE_HOSTNAME=127.0.0.1 -e DATABASE_PORT=8066 -e DATABASE_NAME=vulcanize_testing \
vulcanize/statediff-migrations:v0.9.0 # vulcanize/statediff-migrations:v0.9.0
- name: Verify schema is latest # - name: Verify schema is latest
run: | # run: |
PGPASSWORD="password" pg_dump -h localhost -p 8066 -U vdbm vulcanize_testing --no-owner --schema-only > ./db/migration_schema.sql # PGPASSWORD="password" pg_dump -h localhost -p 8066 -U vdbm vulcanize_testing --no-owner --schema-only > ./db/migration_schema.sql
./scripts/check_diff.sh db/schema.sql ./db/migration_schema.sql # ./scripts/check_diff.sh db/schema.sql ./db/migration_schema.sql
migration: # migration:
name: Compare up and down migration # name: Compare up and down migration
env: # env:
GOPATH: /tmp/go # GOPATH: /tmp/go
strategy: # strategy:
matrix: # matrix:
go-version: [ 1.16.x ] # go-version: [ 1.16.x ]
os: [ ubuntu-latest ] # os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }} # runs-on: ${{ matrix.os }}
steps: # steps:
- name: Create GOPATH # - name: Create GOPATH
run: mkdir -p /tmp/go # run: mkdir -p /tmp/go
- name: Install Go # - name: Install Go
uses: actions/setup-go@v2 # uses: actions/setup-go@v2
with: # with:
go-version: ${{ matrix.go-version }} # go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- name: Test migration # - name: Test migration
run: | # run: |
timeout 5m make test-migrations # timeout 5m make test-migrations