Skip to content

Commit

Permalink
chore: fixes to CI (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrosop authored Sep 15, 2023
1 parent 55fdf79 commit d12173a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dockercompose/graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func console( //nolint:funlen
DependsOn: map[string]DependsOn{
"graphql": {Condition: "service_healthy"},
},
EntryPoint: nil,
EntryPoint: nil,
Environment: env,
ExtraHosts: []string{
"host.docker.internal:host-gateway",
Expand Down
4 changes: 2 additions & 2 deletions dockercompose/graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func expectedConsole() *Service {
"HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS": "true",
"HASURA_GRAPHQL_ENABLE_TELEMETRY": "false",
"HASURA_GRAPHQL_EVENTS_HTTP_POOL_SIZE": "100",
"HASURA_GRAPHQL_JWT_SECRET": `{"claims_map":{"x-hasura-allowed-roles":{"path":"$.roles"},"x-hasura-default-role":"viewer","x-hasura-org-id":{"default":"public","path":"$.org"},"x-hasura-user-id":{"path":"$.sub"}},"key":"jwtSecretKey","type":"HS256"}`,
"HASURA_GRAPHQL_JWT_SECRET": `{"claims_map":{"x-hasura-allowed-roles":{"path":"$.roles"},"x-hasura-default-role":"viewer","x-hasura-org-id":{"default":"public","path":"$.org"},"x-hasura-user-id":{"path":"$.sub"}},"key":"jwtSecretKey","type":"HS256"}`, //nolint:lll
"HASURA_GRAPHQL_LIVE_QUERIES_MULTIPLEXED_BATCH_SIZE": "100",
"HASURA_GRAPHQL_LIVE_QUERIES_MULTIPLEXED_REFETCH_INTERVAL": "1000",
"HASURA_GRAPHQL_LOG_LEVEL": "info",
Expand All @@ -181,7 +181,7 @@ func expectedConsole() *Service {
"NHOST_FUNCTIONS_URL": "http://local.functions.nhost.run:1337/v1",
"NHOST_GRAPHQL_URL": "http://local.graphql.nhost.run:1337/v1",
"NHOST_HASURA_URL": "http://local.hasura.nhost.run:1337",
"NHOST_JWT_SECRET": `{"claims_map":{"x-hasura-allowed-roles":{"path":"$.roles"},"x-hasura-default-role":"viewer","x-hasura-org-id":{"default":"public","path":"$.org"},"x-hasura-user-id":{"path":"$.sub"}},"key":"jwtSecretKey","type":"HS256"}`,
"NHOST_JWT_SECRET": `{"claims_map":{"x-hasura-allowed-roles":{"path":"$.roles"},"x-hasura-default-role":"viewer","x-hasura-org-id":{"default":"public","path":"$.org"},"x-hasura-user-id":{"path":"$.sub"}},"key":"jwtSecretKey","type":"HS256"}`, //nolint:lll
"NHOST_REGION": "",
"NHOST_STORAGE_URL": "http://local.storage.nhost.run:1337/v1",
"NHOST_SUBDOMAIN": "local",
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@

nativeBuildInputs = with pkgs; [
go
clang
];

tags = [ ];
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/nhost/cli

go 1.20
go 1.21

require (
github.com/Yamashou/gqlgenc v0.13.5
Expand Down
6 changes: 3 additions & 3 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(final: prev: rec {

go = prev.go_1_20.overrideAttrs
go = prev.go_1_21.overrideAttrs
(finalAttrs: previousAttrs: rec {
version = "1.20.7";
version = "1.21.1";

src = final.fetchurl {
url = "https://go.dev/dl/go${version}.src.tar.gz";
sha256 = "sha256-LF7pyeweczsNu8K9/tP2IwblHYFyvzj09OVCsnUg9Zc=";
sha256 = "sha256-v6Nr916aHpy725q8+dFwfkeb06B4gKiuNWTK7lcRy5k=";
};

});
Expand Down

0 comments on commit d12173a

Please sign in to comment.