Naming convention and CI
ci/woodpecker/push/woodpecker Pipeline was successful Details

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main v0.0.2
jolheiser 2022-05-05 20:55:28 -05:00
parent f74ad12958
commit 7afb62338a
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
7 changed files with 10 additions and 2 deletions

6
.woodpecker.yml 100644
View File

@ -0,0 +1,6 @@
pipeline:
compliance:
image: golang:1.18
commands:
- go test -race ./...
- go vet ./...

View File

@ -7,6 +7,8 @@ A JSON schema and loader for [chroma](https://github.com/alecthomas/chroma).
[schema.json](schema/schema.json) provides a [JSON schema](https://json-schema.org).
Chroma themes are conventionally named `<theme>.chroma.json`.
## Styles
There is a valid [catppuccin](https://github.com/catppuccin) style in [catppuccin.json](schema/testdata/catppuccin.json).

View File

@ -14,7 +14,7 @@ import (
func main() {
fs := flag.NewFlagSet("chromajson", flag.ExitOnError)
styleFlag := fs.String("style", ".style.json", "Chroma JSON style config")
styleFlag := fs.String("style", ".chroma.json", "Chroma JSON style config")
lintFlag := fs.Bool("lint", false, "Lint config and exit")
if err := fs.Parse(os.Args[1:]); err != nil {
fmt.Println(err)

View File

@ -25,7 +25,7 @@ func TestLint(t *testing.T) {
t.Run(tc.Name, func(t *testing.T) {
assert := is.New(t)
fi, err := testdata.Open(fmt.Sprintf("testdata/%s.json", tc.Name))
fi, err := testdata.Open(fmt.Sprintf("testdata/%s.chroma.json", tc.Name))
assert.NoErr(err) // Should open file
defer fi.Close()