mirror of https://github.com/coder/coder.git
chore(site): regenerate provisioner stub (#9151)
This commit is contained in:
parent
04810cb42e
commit
ea34ec7538
|
@ -508,9 +508,15 @@ jobs:
|
||||||
- name: Setup Terraform
|
- name: Setup Terraform
|
||||||
uses: ./.github/actions/setup-tf
|
uses: ./.github/actions/setup-tf
|
||||||
|
|
||||||
|
- name: Install Nix
|
||||||
|
uses: DeterminateSystems/nix-installer-action@v4
|
||||||
|
|
||||||
|
- name: Run the Magic Nix Cache
|
||||||
|
uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
make -B site/out/index.html
|
nix-shell --command 'make -B site/out/index.html'
|
||||||
|
|
||||||
- run: pnpm playwright:install
|
- run: pnpm playwright:install
|
||||||
working-directory: site
|
working-directory: site
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -470,7 +470,8 @@ gen: \
|
||||||
.prettierignore \
|
.prettierignore \
|
||||||
site/.prettierrc.yaml \
|
site/.prettierrc.yaml \
|
||||||
site/.prettierignore \
|
site/.prettierignore \
|
||||||
site/.eslintignore
|
site/.eslintignore \
|
||||||
|
site/e2e/provisionerGenerated.ts
|
||||||
.PHONY: gen
|
.PHONY: gen
|
||||||
|
|
||||||
# Mark all generated files as fresh so make thinks they're up-to-date. This is
|
# Mark all generated files as fresh so make thinks they're up-to-date. This is
|
||||||
|
@ -492,6 +493,7 @@ gen/mark-fresh:
|
||||||
site/.prettierrc.yaml \
|
site/.prettierrc.yaml \
|
||||||
site/.prettierignore \
|
site/.prettierignore \
|
||||||
site/.eslintignore \
|
site/.eslintignore \
|
||||||
|
site/e2e/provisionerGenerated.ts \
|
||||||
"
|
"
|
||||||
for file in $$files; do
|
for file in $$files; do
|
||||||
echo "$$file"
|
echo "$$file"
|
||||||
|
@ -538,6 +540,11 @@ site/src/api/typesGenerated.ts: scripts/apitypings/main.go $(shell find ./coders
|
||||||
cd site
|
cd site
|
||||||
pnpm run format:types
|
pnpm run format:types
|
||||||
|
|
||||||
|
site/e2e/provisionerGenerated.ts:
|
||||||
|
cd site
|
||||||
|
../scripts/pnpm_install.sh
|
||||||
|
pnpm run gen:provisioner
|
||||||
|
|
||||||
coderd/rbac/object_gen.go: scripts/rbacgen/main.go coderd/rbac/object.go
|
coderd/rbac/object_gen.go: scripts/rbacgen/main.go coderd/rbac/object.go
|
||||||
go run scripts/rbacgen/main.go ./coderd/rbac > coderd/rbac/object_gen.go
|
go run scripts/rbacgen/main.go ./coderd/rbac > coderd/rbac/object_gen.go
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ cdroot
|
||||||
temp_dir="$(mktemp -d)"
|
temp_dir="$(mktemp -d)"
|
||||||
|
|
||||||
cdroot
|
cdroot
|
||||||
cd ./helm/$chart
|
cd "./helm/${chart}"
|
||||||
log "--- Updating dependencies"
|
log "--- Updating dependencies"
|
||||||
helm dependency update .
|
helm dependency update .
|
||||||
log "--- Packaging helm chart $chart for version $version ($output_path)"
|
log "--- Packaging helm chart $chart for version $version ($output_path)"
|
||||||
|
|
|
@ -64,7 +64,10 @@ export interface RichParameter {
|
||||||
validationMax?: number | undefined
|
validationMax?: number | undefined
|
||||||
validationMonotonic: string
|
validationMonotonic: string
|
||||||
required: boolean
|
required: boolean
|
||||||
|
/** legacy_variable_name was removed (= 14) */
|
||||||
displayName: string
|
displayName: string
|
||||||
|
order: number
|
||||||
|
ephemeral: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/** RichParameterValue holds the key/value mapping of a parameter. */
|
/** RichParameterValue holds the key/value mapping of a parameter. */
|
||||||
|
@ -356,6 +359,12 @@ export const RichParameter = {
|
||||||
if (message.displayName !== "") {
|
if (message.displayName !== "") {
|
||||||
writer.uint32(122).string(message.displayName)
|
writer.uint32(122).string(message.displayName)
|
||||||
}
|
}
|
||||||
|
if (message.order !== 0) {
|
||||||
|
writer.uint32(128).int32(message.order)
|
||||||
|
}
|
||||||
|
if (message.ephemeral === true) {
|
||||||
|
writer.uint32(136).bool(message.ephemeral)
|
||||||
|
}
|
||||||
return writer
|
return writer
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
"lint:types": "tsc --noEmit",
|
"lint:types": "tsc --noEmit",
|
||||||
"playwright:install": "playwright install --with-deps chromium",
|
"playwright:install": "playwright install --with-deps chromium",
|
||||||
"playwright:test": "playwright test --config=e2e/playwright.config.ts",
|
"playwright:test": "playwright test --config=e2e/playwright.config.ts",
|
||||||
"gen:provisioner": "protoc --plugin=./node_modules/.bin/protoc-gen-ts-proto --ts_proto_out=./e2e/ --ts_proto_opt=outputJsonMethods=false,outputEncodeMethods=encode-no-creation,outputClientImpl=false,nestJs=false,outputPartialMethods=false,fileSuffix=Generated,suffix=hey -I ../provisionersdk/proto ../provisionersdk/proto/provisioner.proto && prettier --cache --write './e2e/provisionerGenerated.ts'",
|
"gen:provisioner": "protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./e2e/ --ts_proto_opt=outputJsonMethods=false,outputEncodeMethods=encode-no-creation,outputClientImpl=false,nestJs=false,outputPartialMethods=false,fileSuffix=Generated,suffix=hey -I ../provisionersdk/proto ../provisionersdk/proto/provisioner.proto && pnpm exec prettier --ignore-path '/dev/null' --cache --write './e2e/provisionerGenerated.ts'",
|
||||||
"storybook": "STORYBOOK=true storybook dev -p 6006",
|
"storybook": "STORYBOOK=true storybook dev -p 6006",
|
||||||
"storybook:build": "storybook build --webpack-stats-json",
|
"storybook:build": "storybook build --webpack-stats-json",
|
||||||
"test": "jest --selectProjects test",
|
"test": "jest --selectProjects test",
|
||||||
|
|
Loading…
Reference in New Issue