File tree 2 files changed +12
-7
lines changed 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ jobs:
112
112
js-${{ runner.os }}-
113
113
114
114
- name : Install make
115
- run : brew install make
115
+ run : |
116
+ brew install make
117
+ echo "$(brew --prefix)/opt/make/libexec/gnubin" >> $GITHUB_PATH
116
118
117
119
- name : Build Site
118
120
run : make site/out/index.html
Original file line number Diff line number Diff line change 65
65
66
66
fmt/prettier :
67
67
@echo " --- prettier"
68
+ cd site
68
69
# Avoid writing files in CI to reduce file write activity
69
70
ifdef CI
70
- cd site && yarn run format:check
71
+ yarn run format:check
71
72
else
72
- cd site && yarn run format:write
73
+ yarn run format:write
73
74
endif
74
75
.PHONY : fmt/prettier
75
76
@@ -150,14 +151,16 @@ provisionersdk/proto/provisioner.pb.go: provisionersdk/proto/provisioner.proto
150
151
151
152
site/out/index.html : $(shell find ./site -not -path './site/node_modules/* ' -type f -name '* .tsx') $(shell find ./site -not -path './site/node_modules/* ' -type f -name '* .ts') site/package.json
152
153
./scripts/yarn_install.sh
153
- cd site && yarn typegen
154
- cd site && yarn build
154
+ cd site
155
+ yarn typegen
156
+ yarn build
155
157
# Restores GITKEEP files!
156
- git checkout HEAD site/ out
158
+ git checkout HEAD out
157
159
158
160
site/src/api/typesGenerated.ts : scripts/apitypings/main.go $(shell find codersdk -type f -name '* .go')
159
161
go run scripts/apitypings/main.go > site/src/api/typesGenerated.ts
160
- cd site && yarn run format:types
162
+ cd site
163
+ yarn run format:types
161
164
162
165
test : test-clean
163
166
gotestsum -- -v -short ./...
You can’t perform that action at this time.
0 commit comments