Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 26 additions & 12 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Documentation: https://docs.codecov.io/docs/codecov-yaml

codecov:
branch: develop

require_ci_to_pass: false
notify:
wait_for_ci: false
coverage:
status:
project:
# pull-requests only
patch:
default:
branches:
- develop

comment:
layout: "reach,diff,flags,files,footer"
behavior: default
require_changes: no
branches:
- develop
threshold: 0.1%
ignore:
- "**/generated/**"
- "**/*generated*"
- "**/*.pb.go"
- "**/*_test.go"
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.html linguist-language=go
*.css linguist-language=go
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug Report
about: Report a bug
labels: kind/bug

---

### Environment

<!--
- Deploy env: kubernetes, vm, etc.
- Dubbo application version: dubbo-java 3.0.5, dubbo-go 3.3.0, etc.
- Registry: Nacos, v2.0.0
-->

- Deploy env:
- Dubbo application version:
- Registry:

### Issue description

<!-- Here is a brief description about the issue. -->

### Logs

<details><summary>Click me to check logs</summary>

```
Copy logs to here.
```

</details>
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/dubbo-admin-feature-request-template.md

This file was deleted.

37 changes: 0 additions & 37 deletions .github/ISSUE_TEMPLATE/dubbo-admin-issue-report-template.md

This file was deleted.

11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Feature Request
about: Suggest an new feature
labels: kind/feature

---
<!-- Please only use this template for submitting feature requests -->

**What would you like to be added**:

**Why is this needed**:
25 changes: 9 additions & 16 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
## What is the purpose of the change
**Please provide a description of this PR:**

XXXXX
**To help us figure out who should review this PR, please put an X in all the areas that this PR affects.**

## Brief changelog
- [ ] Docs
- [ ] Installation
- [ ] User Experience
- [ ] Dubboctl
- [ ] Console
-
**Please check any characteristics that apply to this pull request.**

XX

## Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

* [ ] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
* [ ] Format the pull request title like `[ISSUE #123] Fix UnknownException when host config not exist`. Each commit in the pull request should have a meaningful subject line and body.
* [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
* [ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist.
* [ ] Run `mvn clean compile --batch-mode -DskipTests=false -Dcheckstyle.skip=false -Drat.skip=false -Dmaven.javadoc.skip=true to make sure basic checks pass.
91 changes: 75 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,82 @@
name: CI
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

on: [push, pull_request]
name: Continues Integration

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
unit-test:
name: Go Test
runs-on: ubuntu-latest
if: github.repository == 'apache/dubbo-admin'
steps:
- uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Download dependencies
run: |
go mod download
- name: Go Test
run: |
go test ./... -gcflags=-l -coverprofile=coverage.txt -covermode=atomic
- name: "Upload test result"
if: always()
uses: actions/upload-artifact@v4
with:
name: test-coverage
path: "**/coverage.txt"
- name: Coverage
run: bash <(curl -s https://codecov.io/bash)

license-check:
name: License Check - Go
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11 ]
timeout-minutes: 30
if: github.repository == 'apache/dubbo-admin'
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
java-version: ${{ matrix.java }}
- name: Build with Maven
run: ./mvnw clean install --batch-mode -DskipTests=false -Dcheckstyle.skip=false -Drat.skip=false -Dmaven.javadoc.skip=true
- name: Upload coverage to codecov
uses: codecov/codecov-action@v1
go-version-file: go.mod

- name: Check License Header
uses: apache/skywalking-eyes/header@main

go-fmt:
name: Go fmt
runs-on: ubuntu-latest
if: github.repository == 'apache/dubbo-admin'
steps:
- uses: actions/checkout@v4
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
flags: unit
go-version-file: go.mod
- name: Download dependencies
run: |
go mod download
- name: Go Fmt
run: |
go fmt ./... && git status && [[ -z `git status -s` ]]
# diff -u <(echo -n) <(gofmt -d -s .)
45 changes: 0 additions & 45 deletions .github/workflows/integration.yml

This file was deleted.

Loading