Skip to content

Commit

Permalink
Add basic CI pipelines (#22)
Browse files Browse the repository at this point in the history
* Add basic CI pipelines
`make docs` and `make test`
Docs were out of date in #21

* make docs
  • Loading branch information
julienduchesne authored Oct 19, 2023
1 parent 6a3dceb commit 6ab12b3
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 12 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: tests
on:
pull_request: {}
push:
branches:
- main
- master

jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- name: make test
run: |
go install github.com/google/go-jsonnet/cmd/jsonnet@latest
go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest
make test
docs:
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- name: make docs
run: |
go install github.com/jsonnet-libs/docsonnet@master
make docs
git diff --exit-code
4 changes: 1 addition & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
permalink: /
---

# package xtd
# xtd

```jsonnet
local xtd = import "github.com/jsonnet-libs/xtd/main.libsonnet"
Expand All @@ -14,8 +14,6 @@ This package serves as a test field for functions intended to be contributed to
in the future, but also provides a place for less general, yet useful utilities.


## Subpackages

* [aggregate](aggregate.md)
* [array](array.md)
* [ascii](ascii.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/aggregate.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
permalink: /aggregate/
---

# package aggregate
# aggregate

```jsonnet
local aggregate = import "github.com/jsonnet-libs/xtd/aggregate.libsonnet"
Expand Down
2 changes: 1 addition & 1 deletion docs/array.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
permalink: /array/
---

# package array
# array

```jsonnet
local array = import "github.com/jsonnet-libs/xtd/array.libsonnet"
Expand Down
2 changes: 1 addition & 1 deletion docs/ascii.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
permalink: /ascii/
---

# package ascii
# ascii

```jsonnet
local ascii = import "github.com/jsonnet-libs/xtd/ascii.libsonnet"
Expand Down
2 changes: 1 addition & 1 deletion docs/camelcase.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
permalink: /camelcase/
---

# package camelcase
# camelcase

```jsonnet
local camelcase = import "github.com/jsonnet-libs/xtd/camelcase.libsonnet"
Expand Down
2 changes: 1 addition & 1 deletion docs/date.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
permalink: /date/
---

# package date
# date

```jsonnet
local date = import "github.com/jsonnet-libs/xtd/date.libsonnet"
Expand Down
2 changes: 1 addition & 1 deletion docs/inspect.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
permalink: /inspect/
---

# package inspect
# inspect

```jsonnet
local inspect = import "github.com/jsonnet-libs/xtd/inspect.libsonnet"
Expand Down
2 changes: 1 addition & 1 deletion docs/jsonpath.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
permalink: /jsonpath/
---

# package jsonpath
# jsonpath

```jsonnet
local jsonpath = import "github.com/jsonnet-libs/xtd/jsonpath.libsonnet"
Expand Down
2 changes: 1 addition & 1 deletion docs/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
permalink: /string/
---

# package string
# string

```jsonnet
local string = import "github.com/jsonnet-libs/xtd/string.libsonnet"
Expand Down
2 changes: 1 addition & 1 deletion docs/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
permalink: /url/
---

# package url
# url

```jsonnet
local url = import "github.com/jsonnet-libs/xtd/url.libsonnet"
Expand Down

0 comments on commit 6ab12b3

Please sign in to comment.