-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/CCIP-1249
- Loading branch information
Showing
116 changed files
with
8,552 additions
and
637 deletions.
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Observability Lib Checks | ||
|
||
on: | ||
push: | ||
paths: | ||
- "observability-lib/**" | ||
|
||
jobs: | ||
run-tests: | ||
defaults: | ||
run: | ||
working-directory: observability-lib | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | ||
with: | ||
go-version-file: "go.mod" | ||
|
||
- name: Build | ||
run: go build -v ./... | ||
|
||
- name: Unit Tests | ||
run: go test -v ./... |
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
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,14 @@ | ||
.PHONY: build | ||
build: | ||
go build -o observability-lib . | ||
|
||
.PHONY: run | ||
run: | ||
go run main.go | ||
|
||
.PHONY: lint | ||
lint: | ||
golangci-lint run | ||
|
||
test: | ||
go test -v ./... |
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,28 @@ | ||
## Observability-lib | ||
|
||
Contains the observability library to build dashboards and alerts | ||
|
||
## Usage | ||
|
||
To build the observability library, run the following command: | ||
|
||
```bash | ||
make build | ||
``` | ||
|
||
To run the tests, run the following command: | ||
|
||
```bash | ||
make test | ||
``` | ||
|
||
To run the linter, run the following command: | ||
|
||
```bash | ||
make lint | ||
``` | ||
|
||
To run the CLI | ||
```bash | ||
make run | ||
``` |
Oops, something went wrong.