Skip to content

Commit d9b5160

Browse files
committed
ci: 更新 GitHub Actions 工作流并添加项目配置文件
1 parent 5515aca commit d9b5160

File tree

6 files changed

+51
-8
lines changed

6 files changed

+51
-8
lines changed

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: ['https://www.xuxueli.com/page/donate.html'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Please answer some questions before submitting your issue. Thanks!
2+
3+
### Which version of XXL-CACHE do you using?
4+
5+
### Expected behavior
6+
7+
### Actual behavior
8+
9+
### Steps to reproduce the behavior
10+
11+
### Other information

.github/PULL_REQUEST_TEMPLATE

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
**What kind of change does this PR introduce?** (check at least one)
2+
3+
- [ ] Bugfix
4+
- [ ] Feature
5+
- [ ] Code style update
6+
- [ ] Refactor
7+
- [ ] Build-related changes
8+
- [ ] Other, please describe:
9+
10+
11+
**The description of the PR:**
12+
13+
14+
**Other information:**

.github/workflows/maven.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
name: Java CI
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
48

59
jobs:
610
build:
711

812
runs-on: ubuntu-latest
913

1014
steps:
11-
- uses: actions/checkout@v1
12-
- name: Set up JDK 1.8
13-
uses: actions/setup-java@v1
15+
- uses: actions/checkout@v4
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
1418
with:
15-
java-version: 1.8
19+
java-version: '17'
20+
distribution: 'temurin'
21+
cache: maven
1622
- name: Build with Maven
1723
run: mvn -B package --file pom.xml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<a href="https://github.com/xuxueli/xxl-cache/actions">
1111
<img src="https://github.com/xuxueli/xxl-cache/workflows/Java%20CI/badge.svg" >
1212
</a>
13-
<a href="https://maven-badges.herokuapp.com/maven-central/com.xuxueli/xxl-cache-core/">
14-
<img src="https://maven-badges.herokuapp.com/maven-central/com.xuxueli/xxl-cache-core/badge.svg" >
13+
<a href="https://central.sonatype.com/artifact/com.xuxueli/xxl-cache-core/">
14+
<img src="https://img.shields.io/maven-central/v/com.xuxueli/xxl-cache-core" >
1515
</a>
1616
<a href="https://github.com/xuxueli/xxl-cache/releases">
1717
<img src="https://img.shields.io/github/release/xuxueli/xxl-cache.svg" >

doc/XXL-CACHE官方文档.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 《多级缓存框架XXL-CACHE》
22

33
[![Actions Status](https://github.com/xuxueli/xxl-cache/workflows/Java%20CI/badge.svg)](https://github.com/xuxueli/xxl-cache/actions)
4-
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.xuxueli/xxl-cache-core/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.xuxueli/xxl-cache-core/)
4+
[![Maven Central](https://img.shields.io/maven-central/v/com.xuxueli/xxl-cache-core)](https://central.sonatype.com/artifact/com.xuxueli/xxl-cache-core/)
55
[![GitHub release](https://img.shields.io/github/release/xuxueli/xxl-cache.svg)](https://github.com/xuxueli/xxl-cache/releases)
66
[![GitHub stars](https://img.shields.io/github/stars/xuxueli/xxl-cache)](https://github.com/xuxueli/xxl-cache/)
77
![License](https://img.shields.io/github/license/xuxueli/xxl-cache.svg)

0 commit comments

Comments
 (0)