Skip to content

Commit

Permalink
removing ipdx workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumemichel committed Oct 16, 2024
1 parent 5e14df1 commit fac5e31
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 106 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: continuous integration

on:
push:
branches: [main]
pull_request:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
go-version: [1.21, 1.22]

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Cache Go modules
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Install dependencies
run: go mod download

- name: Check Go fmt
run: |
if ! go fmt ./...; then
echo "Go fmt check failed"
exit 1
fi
- name: Run Go vet
run: go vet ./...

- name: Run golint
run: |
go install golang.org/x/lint/golint@latest
golint ./...
- name: Run tests
run: go test ./... -v -cover
18 changes: 0 additions & 18 deletions .github/workflows/go-check.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/go-test.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/release-check.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/releaser.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/stale.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/tagpush.yml

This file was deleted.

2 changes: 1 addition & 1 deletion queen.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func NewQueen(ctx context.Context, dbConnString string, keysDbPath string, nPort

dbPort, err := strconv.Atoi(os.Getenv("DB_PORT"))
if err != nil {
fmt.Errorf("Port must be an integer", err)
logger.Errorf("Port must be an integer", err)
}

mP, _ := tele.NewMeterProvider()
Expand Down

0 comments on commit fac5e31

Please sign in to comment.