Skip to content

Commit

Permalink
Allow integration tests on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Mar 7, 2023
1 parent d232d36 commit 945b5ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Integration Tests
on:
pull_request:
paths:
- materialize/**
branches:
- main

jobs:
integration:
Expand Down
6 changes: 2 additions & 4 deletions src/schemas/schemaRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import alert from 'cli-alerts';
function nameHook(): any {
let i = 0;
return function(schema: any) {
if (schema.name) {
schema.name = `name${i++}`;
}
schema.name = `name${i++}`
}
}

Expand Down Expand Up @@ -57,7 +55,7 @@ export async function registerSchema(avroSchema: any, registry: any) {
return schemaId;
}

export async function getAvroEncodedRecord(record: any, registry: any, schema_id: number) {
export async function getAvroEncodedRecord(record: any, registry: any, schema_id: any) {
let encodedRecord = await registry.encode(schema_id, record);
return encodedRecord;
}

0 comments on commit 945b5ac

Please sign in to comment.