-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fb30d3
commit bd06275
Showing
7 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{ | ||
"yaml.schemas": { | ||
"./schema/runny.schema.json": ["fixtures/*.yaml", ".runny.yaml"] | ||
"./schema/runny.schema.json": [ | ||
".runny.yaml", | ||
"examples/*.yaml", | ||
"fixtures/*.yaml" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Runny Examples | ||
|
||
These files are named after a language or technology, but bear in mind that your Runny config should always be called `.runny.yaml`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
commands: | ||
# Top tip: Docker Compose has good command-line completion already. But using runny, you can add entries for just the | ||
# commands you use regularly, then get an uncluttered list of options when you tab-complete. | ||
up: | ||
run: docker compose up -d | ||
down: | ||
run: docker compose down | ||
build-and-up: | ||
run: docker compose up --build -d | ||
logs: | ||
argnames: | ||
- service | ||
run: docker compose logs $service | ||
shell: | ||
argnames: | ||
- service | ||
run: docker compose exec $service sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
commands: | ||
clean: | ||
run: | | ||
go clean ./... | ||
rm -rf dist | ||
install-goreleaser: | ||
if: "! command -v goreleaser" | ||
run: brew install goreleaser/tap/goreleaser | ||
release: | ||
needs: | ||
- clean | ||
- install-goreleaser | ||
run: | | ||
export GITHUB_TOKEN=$(gh auth token) | ||
goreleaser | ||
generate-schema: | ||
run: go generate ./... | ||
test: | ||
run: go test ./... | ||
test-coverage: | ||
run: go test -coverprofile=c.out ./... && go tool cover -func="c.out" | ||
test-coverage-html: | ||
run: go test -coverprofile=c.out ./... && go tool cover -html="c.out" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
commands: | ||
install-uv: | ||
if: "! command -v uv" | ||
run: pip install uv | ||
pip-sync: | ||
needs: | ||
- install-uv | ||
run: uv pip sync requirements.txt | ||
pip-compile-and-sync: | ||
needs: | ||
- install-uv | ||
run: | | ||
uv pip compile requirements.in -o requirements.txt | ||
uv pip sync requirements.txt | ||
pip-install: | ||
argnames: | ||
- packagespec | ||
run: echo $packagespec >> requirements.in | ||
then: | ||
- pip-compile-and-sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
commands: | ||
update-requirements: | ||
run: pip freeze > requirements.txt | ||
pip-install: | ||
argnames: | ||
- packagespec | ||
run: pip install $packagespec | ||
then: | ||
- update-requirements |