GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: add codecov & sonar · ucloud/ucloud-sdk-java@8894592

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • ISSUE_TEMPLATE
      • Bug_Report.md
    • PULL_REQUEST_TEMPLATE.md
    • workflows
      • codecov.yml
      • sonar.yml
  • .gitignore
  • Makefile
  • pom.xml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/ISSUE_TEMPLATE/Bug_Report.md‎

Copy file name to clipboard
+14Lines changed: 14 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Bug Report
3+
about: If something isn't working as expected
4+
---
5+
6+
### Version of UCloud SDK?
7+
8+
### Version of Java (`java -version`)?
9+
10+
### What issue did you see?
11+
12+
### Steps to reproduce
13+
14+
If you have have an runnable example, please include it.
Collapse file

‎.github/PULL_REQUEST_TEMPLATE.md‎

Copy file name to clipboard
+7Lines changed: 7 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!--- Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests --->
2+
3+
FEATURES:
4+
5+
ENHANCEMENTS:
6+
7+
BUG FIXES:
Collapse file

‎.github/workflows/codecov.yml‎

Copy file name to clipboard
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- release/*
8+
pull_request:
9+
types: [opened, synchronize, reopened]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Run tests
17+
run: ./mvn test
18+
- name: Upload coverage to Codecov
19+
uses: codecov/codecov-action@v1
20+
with:
21+
fail_ci_if_error: false
Collapse file

‎.github/workflows/sonar.yml‎

Copy file name to clipboard
+37Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Sonar
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- release/*
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
17+
- name: Set up JDK 11
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: 11
21+
- name: Cache SonarCloud packages
22+
uses: actions/cache@v1
23+
with:
24+
path: ~/.sonar/cache
25+
key: ${{ runner.os }}-sonar
26+
restore-keys: ${{ runner.os }}-sonar
27+
- name: Cache Maven packages
28+
uses: actions/cache@v1
29+
with:
30+
path: ~/.m2
31+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: ${{ runner.os }}-m2
33+
- name: Build and analyze
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
36+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
37+
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=ucloud_ucloud-sdk-java
Collapse file

‎.gitignore‎

Copy file name to clipboardExpand all lines: .gitignore
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
*.rar
1515
*.jar
1616

17-
.*/
1817
.DS_Store
18+
.idea/
1919
*.iml
2020
*/target
2121
target
Collapse file

‎Makefile‎

Copy file name to clipboard
+11-7Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1-
# build:制品构建脚本
2-
# test-cov:单元测试覆盖率基线
3-
# fmt:格式化
4-
51
JAVA_FILES=$$(find ./ -name "*.java")
62

3+
.PHONY: help
4+
help:
5+
@echo "build 制品构建脚"
6+
@echo "test-cov 单元测试覆盖率基线"
7+
@echo "fmt 格式化"
8+
9+
.PHONY: build
710
build:
811
mvn clean package -DskipTests=true
912

13+
.PHONY: fmt
1014
fmt:
1115
java -jar ./cache/google-java-format-1.7-all-deps.jar --aosp -r ${JAVA_FILES}
1216

13-
lint:
14-
@echo ""
15-
17+
.PHONY: test-cov
1618
test-cov:
1719
mvn test
1820

21+
.PHONY: dev
1922
dev:
2023
mkdir -p cache
2124
curl -sLo ./cache/google-java-format-1.7-all-deps.jar https://github.com/google/google-java-format/releases/download/google-java-format-1.7/google-java-format-1.7-all-deps.jar
2225

26+
.PHONY: install
2327
install:
2428
mvn clean install -DskipTests=true
Collapse file

‎pom.xml‎

Copy file name to clipboardExpand all lines: pom.xml
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@
4747
<module>ucloud-sdk-java-uec</module>
4848

4949

50-
<module>ucloud-sdk-java-ufile</module>
51-
50+
<module>ucloud-sdk-java-
5251

5352
<module>ucloud-sdk-java-umem</module>
5453

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.