Skip to content

Commit

Permalink
Merge pull request #114 from netboxlabs/develop
Browse files Browse the repository at this point in the history
release: diode
  • Loading branch information
mfiedorowicz authored Jul 18, 2024
2 parents 5683d10 + a41fa1b commit a95284f
Show file tree
Hide file tree
Showing 220 changed files with 21,531 additions and 34,665 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @mfiedorowicz @natm
* @leoparente @mfiedorowicz @natm
2 changes: 1 addition & 1 deletion .github/golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ run:
modules-download-mode: readonly

output:
format: github-actions
formats: colored-line-number

linters:
enable:
Expand Down
18 changes: 0 additions & 18 deletions .github/pull_request_labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,30 +62,12 @@ python:
- changed-files:
- any-glob-to-any-file: '**/*.py'

diode-netbox-plugin:
- changed-files:
- any-glob-to-any-file:
- 'diode-netbox-plugin/*'
- 'diode-netbox-plugin/**/*'

diode-proto:
- changed-files:
- any-glob-to-any-file:
- 'diode-proto/*'
- 'diode-proto/**/*'

diode-sdk-go:
- changed-files:
- any-glob-to-any-file:
- 'diode-sdk-go/*'
- 'diode-sdk-go/**/*'

diode-sdk-python:
- changed-files:
- any-glob-to-any-file:
- 'diode-sdk-python/*'
- 'diode-sdk-python/**/*'

diode-server:
- changed-files:
- any-glob-to-any-file:
Expand Down
75 changes: 0 additions & 75 deletions .github/workflows/generate_changed_servers_matrix.sh

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/go-sdk-release.yaml

This file was deleted.

54 changes: 42 additions & 12 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,56 @@ on:
- "!release"
pull_request:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

permissions:
contents: write
pull-requests: write

jobs:
go-test:
runs-on: ubuntu-latest
strategy:
matrix:
go: [
"diode-sdk-go",
"diode-server",
]
timeout-minutes: 10
defaults:
run:
working-directory: diode-server
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
go-version: '1.22'
check-latest: true
- name: Run go build ${{ matrix.go }}
working-directory: ${{ matrix.go }}
- name: Run go build
run: go build ./...
- name: Run go test ${{ matrix.go }}
working-directory: ${{ matrix.go }}
run: go test -race ./...
- name: Install additional dependencies
run: |
go install github.com/mfridman/[email protected]
- name: Run go test
id: go-test
run: |
make test-coverage
echo 'coverage-report<<EOF' >> $GITHUB_OUTPUT
cat .coverage/test-report.md >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
echo "coverage-total=$(cat .coverage/coverage.txt)" >> $GITHUB_OUTPUT
- name: Find comment
uses: peter-evans/find-comment@v3
id: existing-comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: Go test coverage
- name: Post comment
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.existing-comment.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
Go test coverage
${{ steps.go-test.outputs.coverage-report }}
Total coverage: ${{ steps.go-test.outputs.coverage-total }}%
edit-mode: replace
20 changes: 8 additions & 12 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,20 @@ permissions:

jobs:
golangci:
strategy:
matrix:
go: [
"diode-sdk-go",
"diode-server",
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: golangci-lint ${{ matrix.go }}
go-version: '1.22'
check-latest: true
- name: Lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
working-directory: ${{ matrix.go }}
working-directory: diode-server
args: --config ../.github/golangci.yaml
skip-pkg-cache: true
skip-build-cache: true
35 changes: 0 additions & 35 deletions .github/workflows/python-netbox-plugin-lint.yml

This file was deleted.

74 changes: 0 additions & 74 deletions .github/workflows/python-netbox-plugin-release.yaml

This file was deleted.

Loading

0 comments on commit a95284f

Please sign in to comment.