Skip to content

Commit

Permalink
ci: add --pretty format option to httpie
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Mar 16, 2024
1 parent a7c085a commit b861612
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .fluentci/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,39 +252,39 @@ export async function e2e(
const pkgx = ctr.withExec([
"bash",
"-c",
`http POST http://fluentci-engine:6880/graphql Content-Type:application/json query="$(cat pkgx.graphql)" --ignore-stdin`,
`http POST http://fluentci-engine:6880/graphql Content-Type:application/json query="$(cat pkgx.graphql)" --ignore-stdin --pretty format`,
]);

console.log(await pkgx.stdout());

const nix = ctr.withExec([
"bash",
"-c",
`http POST http://fluentci-engine:6880/graphql Content-Type:application/json query="$(cat nix.graphql)" --ignore-stdin`,
`http POST http://fluentci-engine:6880/graphql Content-Type:application/json query="$(cat nix.graphql)" --ignore-stdin --pretty format`,
]);

console.log(await nix.stdout());

const flox = ctr.withExec([
"bash",
"-c",
`http POST http://fluentci-engine:6880/graphql Content-Type:application/json query="$(cat flox.graphql)" --ignore-stdin`,
`http POST http://fluentci-engine:6880/graphql Content-Type:application/json query="$(cat flox.graphql)" --ignore-stdin --pretty format`,
]);

console.log(await flox.stdout());

const devenv = ctr.withExec([
"bash",
"-c",
`http POST http://fluentci-engine:6880/graphql Content-Type:application/json query="$(cat devenv.graphql)" --ignore-stdin`,
`http POST http://fluentci-engine:6880/graphql Content-Type:application/json query="$(cat devenv.graphql)" --ignore-stdin --pretty format`,
]);

console.log(await devenv.stdout());

const devbox = ctr.withExec([
"bash",
"-c",
`http POST http://fluentci-engine:6880/graphql Content-Type:application/json query="$(cat devbox.graphql)" --ignore-stdin`,
`http POST http://fluentci-engine:6880/graphql Content-Type:application/json query="$(cat devbox.graphql)" --ignore-stdin --pretty format`,
]);

const stdout = await devbox.stdout();
Expand Down

0 comments on commit b861612

Please sign in to comment.