Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
.cache/
.task/
node_modules/
testdata/fixtures/*.openapi.yaml

.task/
dist/
build/
coverage/
.test-results/
test-results/
*.test
*.prof
*.pprof
dump-*.json
**/.moon/cache/
7 changes: 7 additions & 0 deletions .moon/tasks/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
env:
GOCACHE: ${HOME}/.cache/go-build
GOTMPDIR: ${HOME}/.cache/go-build
taskOptions:
cache: false
unixShell: bash
outputStyle: stream
13 changes: 13 additions & 0 deletions .moon/workspace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
defaultProject: oasmith
projects:
oasmith: .
versionConstraint: ">=2.5.4 <3.0.0"
vcs:
client: git
defaultBranch: master
pipeline:
installDependencies: false
syncProjects: false
syncWorkspace: false
hasher:
walkStrategy: glob
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ by the application, commonly `traceparent`, `tracestate`, and `baggage`.
[Task](https://taskfile.dev) runs the complete project check.

```sh
task check
pkgx moon run check
```

## License
Expand Down
37 changes: 0 additions & 37 deletions Taskfile.yaml

This file was deleted.

41 changes: 41 additions & 0 deletions moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
toolchains:
default: system
tasks:
mod-download:
inputs:
- go.mod
- go.sum
script: |-
set -euo pipefail
go mod download
options:
cache: true
test:
deps:
- oasmith:mod-download
inputs:
- ./**/*.go
- internal/**/*.gotmpl
- go.sum
script: |-
set -euo pipefail
go test ./...
options:
cache: true
lint:
deps:
- oasmith:mod-download
inputs:
- ./**/*.go
- .golangci.yaml
- go.sum
script: |-
set -euo pipefail
gofmt -w .
go tool golangci-lint run --allow-serial-runners ./...
options:
cache: true
check:
deps:
- oasmith:lint
- oasmith:test
Loading