@@ -260,6 +260,7 @@ $(CODER_DYLIBS): go.mod go.sum $(GO_SRC_FILES)
260
260
261
261
# This task builds both dylibs
262
262
build/coder-dylib : $(CODER_DYLIBS )
263
+ .PHONY : build/coder-dylib
263
264
264
265
# This task builds all archives. It parses the target name to get the metadata
265
266
# for the build, so it must be specified in this format:
@@ -391,21 +392,21 @@ node_modules/.installed: package.json
391
392
./scripts/pnpm_install.sh
392
393
393
394
offlinedocs/node_modules/.installed : offlinedocs/package.json
394
- cd offlinedocs
395
+ cd offlinedocs/
395
396
../scripts/pnpm_install.sh
396
397
397
398
site/node_modules/.installed : site/package.json
398
- cd site
399
+ cd site/
399
400
../scripts/pnpm_install.sh
400
401
401
402
site/out/index.html : site/node_modules/.installed $(shell find ./site $(FIND_EXCLUSIONS ) -type f \( -name '* .ts' -o -name '* .tsx' \) )
402
- cd site
403
+ cd site/
403
404
# prevents this directory from getting to big, and causing "too much data" errors
404
405
rm -rf out/assets/
405
406
pnpm build
406
407
407
408
offlinedocs/out/index.html : offlinedocs/node_modules/.installed $(shell find ./offlinedocs $(FIND_EXCLUSIONS ) -type f) $(shell find ./docs $(FIND_EXCLUSIONS ) -type f | sed 's: :\\ :g')
408
- cd offlinedocs
409
+ cd offlinedocs/
409
410
../scripts/pnpm_install.sh
410
411
pnpm export
411
412
@@ -450,7 +451,7 @@ endif
450
451
451
452
fmt/biome : site/node_modules/.installed
452
453
echo " $( GREEN) ==>$( RESET) $( BOLD) fmt/biome$( RESET) "
453
- cd site
454
+ cd site/
454
455
# Avoid writing files in CI to reduce file write activity
455
456
ifdef CI
456
457
pnpm run format:check
@@ -487,7 +488,7 @@ lint/site-icons:
487
488
.PHONY : lint/site-icons
488
489
489
490
lint/ts : site/node_modules/.installed
490
- cd site
491
+ cd site/
491
492
pnpm lint
492
493
.PHONY : lint/ts
493
494
@@ -509,7 +510,7 @@ lint/shellcheck: $(SHELL_SRC_FILES)
509
510
.PHONY : lint/shellcheck
510
511
511
512
lint/helm :
512
- cd helm
513
+ cd helm/
513
514
make lint
514
515
.PHONY : lint/helm
515
516
@@ -599,7 +600,7 @@ gen/mark-fresh:
599
600
fi
600
601
601
602
# touch sets the mtime of the file to the current time
602
- touch $$file
603
+ touch " $$file"
603
604
done
604
605
.PHONY : gen/mark-fresh
605
606
@@ -664,16 +665,16 @@ vpn/vpn.pb.go: vpn/vpn.proto
664
665
site/src/api/typesGenerated.ts : site/node_modules/.installed $(wildcard scripts/apitypings/* ) $(shell find ./codersdk $(FIND_EXCLUSIONS ) -type f -name '* .go')
665
666
# -C sets the directory for the go run command
666
667
go run -C ./scripts/apitypings main.go > $@
667
- cd site
668
+ cd site/
668
669
pnpm exec biome format --write src/api/typesGenerated.ts
669
670
670
671
site/e2e/provisionerGenerated.ts : site/node_modules/.installed provisionerd/proto/provisionerd.pb.go provisionersdk/proto/provisioner.pb.go
671
- cd site
672
+ cd site/
672
673
pnpm run gen:provisioner
673
674
674
675
site/src/theme/icons.json : site/node_modules/.installed $(wildcard scripts/gensite/* ) $(wildcard site/static/icon/* )
675
676
go run ./scripts/gensite/ -icons " $@ "
676
- cd site
677
+ cd site/
677
678
pnpm exec biome format --write src/theme/icons.json
678
679
679
680
examples/examples.gen.json : scripts/examplegen/main.go examples/examples.go $(shell find ./examples/templates)
@@ -693,12 +694,12 @@ codersdk/rbacresources_gen.go: scripts/typegen/codersdk.gotmpl scripts/typegen/m
693
694
694
695
site/src/api/rbacresourcesGenerated.ts : site/node_modules/.installed scripts/typegen/codersdk.gotmpl scripts/typegen/main.go coderd/rbac/object.go coderd/rbac/policy/policy.go
695
696
go run scripts/typegen/main.go rbac typescript > " $@ "
696
- cd site
697
+ cd site/
697
698
pnpm exec biome format --write src/api/rbacresourcesGenerated.ts
698
699
699
700
site/src/api/countriesGenerated.ts : site/node_modules/.installed scripts/typegen/countries.tstmpl scripts/typegen/main.go codersdk/countries.go
700
701
go run scripts/typegen/main.go countries > " $@ "
701
- cd site
702
+ cd site/
702
703
pnpm exec biome format --write src/api/countriesGenerated.ts
703
704
704
705
docs/admin/integrations/prometheus.md : node_modules/.installed scripts/metricsdocgen/main.go scripts/metricsdocgen/metrics
@@ -710,7 +711,7 @@ docs/reference/cli/index.md: node_modules/.installed site/node_modules/.installe
710
711
CI=true BASE_PATH=" ." go run ./scripts/clidocgen
711
712
pnpm exec markdownlint-cli2 --fix ./docs/reference/cli/* .md
712
713
pnpm exec markdown-table-formatter ./docs/reference/cli/* .md
713
- cd site
714
+ cd site/
714
715
pnpm exec biome format --write ../docs/manifest.json
715
716
716
717
docs/admin/security/audit-logs.md : node_modules/.installed coderd/database/querier.go scripts/auditdocgen/main.go enterprise/audit/table.go coderd/rbac/object_gen.go
@@ -722,7 +723,7 @@ coderd/apidoc/swagger.json: node_modules/.installed site/node_modules/.installed
722
723
./scripts/apidocgen/generate.sh
723
724
pnpm exec markdownlint-cli2 --fix ./docs/reference/api/* .md
724
725
pnpm exec markdown-table-formatter ./docs/reference/api/* .md
725
- cd site
726
+ cd site/
726
727
pnpm exec biome format --write ../docs/manifest.json ../coderd/apidoc/swagger.json
727
728
728
729
update-golden-files : \
@@ -850,6 +851,7 @@ test-migrations: test-postgres-docker
850
851
if [[ " $$ {COMMIT_FROM}" == " $$ {COMMIT_TO}" ]]; then echo " Nothing to do!" ; exit 0; fi
851
852
echo " DROP DATABASE IF EXISTS migrate_test_$$ {COMMIT_FROM}; CREATE DATABASE migrate_test_$$ {COMMIT_FROM};" | psql ' postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable'
852
853
go run ./scripts/migrate-test/main.go --from=" $$ COMMIT_FROM" --to=" $$ COMMIT_TO" --postgres-url=" postgresql://postgres:postgres@localhost:5432/migrate_test_$$ {COMMIT_FROM}?sslmode=disable"
854
+ .PHONY : test-migrations
853
855
854
856
# NOTE: we set --memory to the same size as a GitHub runner.
855
857
test-postgres-docker :
@@ -897,6 +899,7 @@ test-tailnet-integration:
897
899
-timeout=5m \
898
900
-count=1 \
899
901
./tailnet/test/integration
902
+ .PHONY : test-tailnet-integration
900
903
901
904
# Note: we used to add this to the test target, but it's not necessary and we can
902
905
# achieve the desired result by specifying -count=1 in the go test invocation
@@ -905,6 +908,11 @@ test-clean:
905
908
go clean -testcache
906
909
.PHONY : test-clean
907
910
911
+ test-e2e : site/node_modules/.installed site/out/index.html
912
+ cd site/
913
+ ifdef CI
914
+ DEBUG=pw:api pnpm playwright:test --forbid-only --workers 1
915
+ else
916
+ pnpm playwright:test
917
+ endif
908
918
.PHONY : test-e2e
909
- test-e2e : site/node_modules/.installed
910
- cd ./site && DEBUG=pw:api pnpm playwright:test --forbid-only --workers 1
0 commit comments