Skip to content

Commit

Permalink
Elixir (#2553)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchsayre committed Apr 13, 2024
1 parent 32ec44e commit e4a4430
Show file tree
Hide file tree
Showing 10 changed files with 1,224 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/test-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- ruby
- php
- scala3,schema-scala3
- elixir,schema-elixir,graphql-elixir

# Partially working
# - schema-typescript # TODO Unify with typescript once fixed
Expand Down Expand Up @@ -176,6 +177,13 @@ jobs:
- run: echo '@main def hello() = println("We need this spam print statement for bloop to exit correctly...")' | scala-cli _
if: ${{ contains(matrix.fixture, 'scala3') }}

- name: Install Elixir
if: ${{ contains(matrix.fixture, 'elixir') }}
uses: erlef/setup-beam@v1
with:
elixir-version: "1.15.7"
otp-version: "26.0"

- run: QUICKTEST=true FIXTURE=${{ matrix.fixture }} npm test

test-complete:
Expand Down
1 change: 1 addition & 0 deletions packages/quicktype-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,4 @@ export { RubyTargetLanguage, RubyRenderer, rubyOptions } from "./language/ruby";
export { CrystalTargetLanguage, CrystalRenderer } from "./language/Crystal";
export { HaskellTargetLanguage, HaskellRenderer, haskellOptions } from "./language/Haskell";
export { DartTargetLanguage, DartRenderer, dartOptions } from "./language/Dart";
export { ElixirTargetLanguage, ElixirRenderer, elixirOptions } from "./language/Elixir";
2 changes: 2 additions & 0 deletions packages/quicktype-core/src/language/All.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { HaskellTargetLanguage } from "./Haskell";
import { TypeScriptZodTargetLanguage } from "./TypeScriptZod";
import { PhpTargetLanguage } from "./Php";
import { TypeScriptEffectSchemaTargetLanguage } from "./TypeScriptEffectSchema";
import { ElixirTargetLanguage } from "./Elixir";

export const all: TargetLanguage[] = [
new CSharpTargetLanguage(),
Expand Down Expand Up @@ -54,6 +55,7 @@ export const all: TargetLanguage[] = [
new HaskellTargetLanguage(),
new TypeScriptZodTargetLanguage(),
new TypeScriptEffectSchemaTargetLanguage(),
new ElixirTargetLanguage(),
new PhpTargetLanguage()
];

Expand Down

0 comments on commit e4a4430

Please sign in to comment.