Skip to content

Commit

Permalink
Run install on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok committed Mar 2, 2022
1 parent 7205c4e commit 45c2817
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions hack/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ graphql::run_checks() {

hub_js::lint() {
pushd "${REPO_ROOT_DIR}/hub-js" > /dev/null
npm ci
npm run lint:prettier
popd > /dev/null
}
Expand Down
1 change: 1 addition & 0 deletions hub-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"cleanup": "rm -rf ./dist",
"lint": "eslint --ext ts .",
"lint:prettier": "prettier --check \"**/*.{js,jsx,ts,tsx,json,css,scss,md,graphql}\"",
"lint:fix:prettier": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,scss,md,graphql}\"",
"build": "npm run cleanup && tsc",
Expand Down
7 changes: 6 additions & 1 deletion pkg/hub/api/graphql/local/schema_gen.go

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

3 changes: 3 additions & 0 deletions test/e2e/hub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ var _ = Describe("GraphQL API", func() {
Value: map[string]interface{}{
"key": "bar",
},
Backend: &gqllocalapi.TypeInstanceResourceVersionSpecBackend{},
},
}
Expect(typeInstance).To(Equal(&gqllocalapi.TypeInstance{
Expand Down Expand Up @@ -752,6 +753,7 @@ func expectedChildTypeInstance(tiID, backendID string) *gqllocalapi.TypeInstance
Value: map[string]interface{}{
"child": true,
},
Backend: &gqllocalapi.TypeInstanceResourceVersionSpecBackend{},
},
}

Expand Down Expand Up @@ -791,6 +793,7 @@ func expectedParentTypeInstance(tiID, backendID string) *gqllocalapi.TypeInstanc
Value: map[string]interface{}{
"parent": true,
},
Backend: &gqllocalapi.TypeInstanceResourceVersionSpecBackend{},
},
}

Expand Down

0 comments on commit 45c2817

Please sign in to comment.