Skip to content

Commit ad8d7c7

Browse files
committed
idk man
1 parent 69fde57 commit ad8d7c7

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

.github/actions/setup-sqlc/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ runs:
55
using: "composite"
66
steps:
77
- name: Setup sqlc
8-
uses: sqlc-dev/setup-sqlc@v3
8+
uses: sqlc-dev/setup-sqlc@v4
99
with:
1010
sqlc-version: "1.20.0"

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,15 @@ jobs:
174174
- name: Setup Go
175175
uses: ./.github/actions/setup-go
176176

177+
- name: Check for unstaged files
178+
run: ./scripts/check_unstaged.sh
179+
177180
- name: Setup sqlc
178181
uses: ./.github/actions/setup-sqlc
179182

183+
- name: Check for unstaged files
184+
run: ./scripts/check_unstaged.sh
185+
180186
- name: go install tools
181187
run: |
182188
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.30
@@ -185,6 +191,9 @@ jobs:
185191
go install github.com/mikefarah/yq/v4@v4.30.6
186192
go install github.com/golang/mock/mockgen@v1.6.0
187193
194+
- name: Check for unstaged files
195+
run: ./scripts/check_unstaged.sh
196+
188197
- name: Install Protoc
189198
run: |
190199
mkdir -p /tmp/proto
@@ -195,6 +204,9 @@ jobs:
195204
cp -r ./include /usr/local/bin/include
196205
popd
197206
207+
- name: Check for unstaged files
208+
run: ./scripts/check_unstaged.sh
209+
198210
- name: make gen
199211
run: "make --output-sync -j -B gen"
200212

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,9 @@ provisionerd/proto/provisionerd.pb.go: provisionerd/proto/provisionerd.proto
540540
./provisionerd/proto/provisionerd.proto
541541

542542
site/src/api/typesGenerated.ts: scripts/apitypings/main.go $(shell find ./codersdk $(FIND_EXCLUSIONS) -type f -name '*.go')
543-
go run ./scripts/apitypings/ > site/src/api/typesGenerated.ts
543+
go run ./scripts/apitypings/ > $@
544544
cd site
545-
pnpm run format:types ./src/api/typesGenerated.ts
545+
pnpm run format:write:only "$@"
546546

547547
site/e2e/provisionerGenerated.ts: provisionerd/proto/provisionerd.pb.go provisionersdk/proto/provisioner.pb.go
548548
cd site
@@ -551,7 +551,7 @@ site/e2e/provisionerGenerated.ts: provisionerd/proto/provisionerd.pb.go provisio
551551

552552
site/src/theme/icons.json: $(wildcard site/static/icon/*)
553553
go run ./scripts/gensite/ -icons $@
554-
pnpm run format:write:only $@
554+
pnpm run format:write:only "$@"
555555

556556
examples/examples.gen.json: scripts/examplegen/main.go examples/examples.go $(shell find ./examples/templates)
557557
go run ./scripts/examplegen/main.go > examples/examples.gen.json

site/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
"chromatic": "chromatic",
1212
"dev": "vite",
1313
"format:check": "pnpm exec prettier --cache --check '../**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
14-
"format:types": "pnpm exec prettier --cache --write './src/api/typesGenerated.ts'",
1514
"format:write": "pnpm exec prettier --cache --write '../**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
16-
"format:write:only": "pnpm exec prettier --write",
15+
"format:write:only": "pnpm exec prettier --cache --write",
1716
"lint": "pnpm typegen && pnpm run lint:types && pnpm exec jest --selectProjects lint",
1817
"lint:fix": "FIX=true pnpm lint",
1918
"lint:types": "tsc --noEmit",

0 commit comments

Comments
 (0)