testdependents

command module
v0.0.0-...-ef58c7a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 19 Imported by: 0

README

Dependents tests

This project tests projects that use templ before deploying major changes to it.

Tasks

update-dependents

Get a list of all public projects in Github that use templ.

nix run a-h/github-download-dependents-info -- a-h/templ --csv dependents.csv
clone-repos

Clone them all.

go run main.go -access-token=`pass github.com/read-public-repos`
build-containers

Build templ-dependent:previous and templ-dependent:current Docker containers that contain the expected versions of the templ CLI.

docker build \
  --build-arg TEMPL_VERSION=v0.2.543 \
  -t templ-dependent:previous \
  .
docker build \
  --build-arg TEMPL_VERSION=ee2ba0e937dae19cf3bd1ee532ff3dcda5a8aae4 \
  -t templ-dependent:current \
  .
test
docker run -e TEMPL_PREFIX="random_number" -v `pwd`/testdata/yokaracho/calculator-calories:/app templ-dependent:previous
docker run -e TEMPL_PREFIX="random_number" -v `pwd`/testdata/yokaracho/calculator-calories:/app templ-dependent:current

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL