mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
ci: rm coverage
This commit is contained in:
@@ -1 +0,0 @@
|
||||
{"branches": 67.0103092783505, "coverage": 75.38887705092692}
|
||||
@@ -1 +0,0 @@
|
||||
{"color": "#dfb317", "label": "coverage", "message": "75.3%", "schemaVersion": 1}
|
||||
@@ -9,8 +9,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
@@ -31,16 +29,13 @@ jobs:
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- name: Bun Install
|
||||
run: cd web && bun install --frozen-lockfile
|
||||
- name: Build Web
|
||||
run: cd web && bun run build
|
||||
- name: Test Boot with Gradle
|
||||
run: ./gradlew :boot:test
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew :boot:bootjar
|
||||
- name: Build Web with Bun
|
||||
run: cd web && bun install --frozen-lockfile && bun run build
|
||||
|
||||
- name: Upload Jar
|
||||
- name: Build Boot with Gradle
|
||||
run: ./gradlew :boot:bootjar -x test
|
||||
|
||||
- name: Upload Boot Jar
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: boot
|
||||
@@ -52,10 +47,8 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download Jar
|
||||
- name: Download Boot Jar
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: boot
|
||||
@@ -71,6 +64,7 @@ jobs:
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
@@ -86,7 +80,7 @@ jobs:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
reajason/memshell-party:latest
|
||||
docker.io/reajason/memshell-party:latest
|
||||
ghcr.io/reajason/memshell-party:latest
|
||||
|
||||
deploy-northflank:
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- 'boot/**'
|
||||
- 'web/**'
|
||||
- '**.md'
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
unit-test:
|
||||
name: UniteTest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
- name: Unit Test with Gradle
|
||||
run: ./gradlew :generator:test
|
||||
integration-test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
middleware:
|
||||
- tomcat
|
||||
- jetty
|
||||
- jbossas
|
||||
- jbosseap
|
||||
- wildfly
|
||||
- glassfish
|
||||
- resin
|
||||
- payara
|
||||
- websphere
|
||||
- springmvc
|
||||
- weblogic
|
||||
- springwebflux
|
||||
- xxljob
|
||||
runs-on: ubuntu-latest
|
||||
name: ${{ matrix.middleware }}
|
||||
needs: [ unit-test ]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
- name: Integration Test with gradle
|
||||
run: ./gradlew :integration-test:test --tests '*.${{ matrix.middleware }}.*' --info
|
||||
- name: Export Integration Test Summary
|
||||
run: cat integration-test/build/test-results/report.md >> $GITHUB_STEP_SUMMARY
|
||||
|
||||
- name: Upload jacoco
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.middleware }}-integration-test
|
||||
path: integration-test/build/jacoco/test.exec
|
||||
retention-days: 1
|
||||
coverage:
|
||||
name: Coverage
|
||||
needs: [ unit-test, integration-test ]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
- name: Unit Test with Gradle
|
||||
run: ./gradlew :generator:test
|
||||
- name: Download Jacoco
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: build/jacoco
|
||||
- name: Merge Jacoco
|
||||
run: ./gradlew :jacocoTestReport --info
|
||||
- name: Generate JaCoCo Badge
|
||||
uses: cicirello/jacoco-badge-generator@v2
|
||||
with:
|
||||
jacoco-csv-file: build/reports/jacoco/test/jacocoTestReport.csv
|
||||
badges-directory: .github/badges
|
||||
generate-coverage-badge: false
|
||||
generate-branches-badge: false
|
||||
generate-coverage-endpoint: true
|
||||
coverage-endpoint-filename: jacoco.json
|
||||
generate-summary: true
|
||||
summary-filename: coverage-summary.json
|
||||
- name: Commit Badges
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
file_pattern: ".github/badges/**"
|
||||
commit_message: "ci: update badge"
|
||||
@@ -0,0 +1,75 @@
|
||||
name: Test
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- 'boot/**'
|
||||
- 'web/**'
|
||||
- '**.md'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
unit-test:
|
||||
name: UniteTest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Generator Unit Test with Gradle
|
||||
run: ./gradlew :generator:test
|
||||
|
||||
- name: Boot Unit Test with Gradle
|
||||
run: ./gradlew :boot:test
|
||||
|
||||
integration-test:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
middleware:
|
||||
- tomcat
|
||||
- jetty
|
||||
- jbossas
|
||||
- jbosseap
|
||||
- wildfly
|
||||
- glassfish
|
||||
- resin
|
||||
- payara
|
||||
- websphere
|
||||
- springmvc
|
||||
- weblogic
|
||||
- springwebflux
|
||||
- xxljob
|
||||
runs-on: ubuntu-latest
|
||||
name: ${{ matrix.middleware }}
|
||||
needs: [ unit-test ]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@v4
|
||||
|
||||
- name: Integration Test with gradle
|
||||
run: ./gradlew :integration-test:test --tests '*.${{ matrix.middleware }}.*' --info
|
||||
- name: Export Integration Test Summary
|
||||
run: cat integration-test/build/test-results/report.md >> $GITHUB_STEP_SUMMARY
|
||||
@@ -4,9 +4,8 @@
|
||||
<p>一键生成常见中间件框架内存马,让内存马测试变得简单高效,打造内存马的全方位学习平台</p>
|
||||
<p>在遍地是轮子的时代,是时候造车,带着大伙加速冲冲冲了</p>
|
||||
|
||||
[](https://github.com/ReaJason/MemShellParty/actions)
|
||||
[](https://github.com/ReaJason/MemShellParty/actions)
|
||||
[](https://github.com/ReaJason/MemShellParty/actions)
|
||||
[](https://github.com/ReaJason/MemShellParty/actions)
|
||||
[](https://github.com/ReaJason/MemShellParty?tab=MIT-1-ov-file)
|
||||
[](https://t.me/memshell)
|
||||
|
||||
@@ -25,7 +24,7 @@
|
||||
|
||||
## 主要特性
|
||||
|
||||
- 自动化测试保障: 自带完备的 [CI 集成测试](https://github.com/ReaJason/MemShellParty/actions/workflows/ci.yaml)
|
||||
- 自动化测试保障: 自带完备的 [CI 集成测试](https://github.com/ReaJason/MemShellParty/actions/workflows/test.yaml)
|
||||
,确保常见场景下的高可用性。
|
||||
- 优化的用例设计: 尽可能精简内存马大小,高效传输。
|
||||
- 广泛的兼容性: 覆盖攻防场景下常见中间件和框架。
|
||||
|
||||
Reference in New Issue
Block a user