Skip to content

Commit

Permalink
Merge branch 'main' into chore/CCIP-1249
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhuie19 committed Jun 13, 2024
2 parents c2b3634 + 5ce871a commit 51c3f11
Show file tree
Hide file tree
Showing 116 changed files with 8,552 additions and 637 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/observability.yml
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 ./...
4 changes: 2 additions & 2 deletions .github/workflows/sonar-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Download Golangci-lint report
if: always()
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # v3.1.4
uses: dawidd6/action-download-artifact@93c629661111aae296c04004b30ae3ba22ed46f3 # v5
with:
workflow: golangci_lint.yml
workflow_conclusion: ""
Expand All @@ -47,7 +47,7 @@ jobs:

- name: Download Go PKG test reports
if: always()
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # v3.1.4
uses: dawidd6/action-download-artifact@93c629661111aae296c04004b30ae3ba22ed46f3 # v5
with:
workflow: pkg.yml
workflow_conclusion: ""
Expand Down
5 changes: 2 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ linters-settings:
deny:
- pkg: "cosmossdk.io/errors"
desc: Use the standard library instead
# TODO re-enable geth exclusion https://smartcontract-it.atlassian.net/browse/BCF-3197
# - pkg: "github.com/ethereum/go-ethereum"
# desc: This is a chain-agnostic repo
- pkg: "github.com/ethereum/go-ethereum"
desc: This is a chain-agnostic repo
- pkg: "github.com/go-gorm/gorm"
desc: Use github.com/jmoiron/sqlx directly instead
- pkg: "github.com/gofrs/uuid"
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ require (
go.uber.org/zap v1.26.0
golang.org/x/crypto v0.18.0
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa
golang.org/x/mod v0.14.0
gonum.org/v1/gonum v0.14.0
google.golang.org/grpc v1.58.3
google.golang.org/protobuf v1.31.0
Expand Down
14 changes: 14 additions & 0 deletions observability-lib/Makefile
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 ./...
28 changes: 28 additions & 0 deletions observability-lib/README.md
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
```
Loading

0 comments on commit 51c3f11

Please sign in to comment.