-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from netboxlabs/develop
release: diode
- Loading branch information
Showing
220 changed files
with
21,531 additions
and
34,665 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1 +1 @@ | ||
* @mfiedorowicz @natm | ||
* @leoparente @mfiedorowicz @natm |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -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 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.