Skip to content

Commit

Permalink
Merge pull request #812 from simple-robot/v4-dev
Browse files Browse the repository at this point in the history
Release: v4.0.0-beta2
  • Loading branch information
ForteScarlet authored Mar 24, 2024
2 parents 4163995 + 7ac5b6b commit 9485917
Show file tree
Hide file tree
Showing 37 changed files with 1,650 additions and 1,459 deletions.
Empty file added .changelog/v4.0.0-beta2.md
Empty file.
59 changes: 59 additions & 0 deletions .github/workflows/publish-v4-kdoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Publish V4 KDoc
on:
workflow_dispatch:


env:
IS_CI: true
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GRADLE_OPTS: "-XX:MaxMetaspaceSize=2g -Dfile.encoding=UTF-8"

jobs:
deploy-doc:
name: Deploy V4 API Doc
runs-on: macos-latest
steps:
# 检出仓库代码
- name: Check out repo
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

# setup Java
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
cache: 'gradle'

# setup Gradle
- name: Gradle generate documentation
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.5
arguments: |
dokkaHtmlMultiModule
--info
--warning-mode all
-x test
--build-cache
-Porg.gradle.jvmargs="-Xms4G -XX:MaxMetaspaceSize=2G -Dfile.encoding=UTF-8"
-Porg.gradle.daemon=false
env:
SIMBOT_IS_SNAPSHOT: false

# https://github.com/marketplace/actions/github-pages-action
- name: Push to doc repository
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PUSH_TOKEN }}
external_repository: simple-robot-library/simbot3-api-docs
publish_branch: kdoc-deploy/main-v4
publish_dir: ./build/dokka/html
destination_dir: main-v4
8 changes: 8 additions & 0 deletions .github/workflows/publish-v4-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ jobs:
gradle-version: 8.5
arguments: assemble allTests --info --warning-mode all --build-cache -Porg.gradle.daemon=false

- name: Upload test reports
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test-reports-${{ matrix.os }}
path: '**/build/reports/tests'
retention-days: 7

- name: Gradle publish snapshot
uses: gradle/gradle-build-action@v3
with:
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/qodana_code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- v3-dev
- v4-dev

jobs:
qodana:
Expand All @@ -18,8 +18,29 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
# - uses: actions/setup-java@v4
# with:
# distribution: 'zulu'
# java-version: 21
# cache: 'gradle'
#
# - name: Run Kover for report
# uses: gradle/gradle-build-action@v3
# with:
# gradle-version: 8.5
# arguments: |
# koverHtmlReport
# --info
# --warning-mode all
#
# - name: Archive coverage data # Archive data for using by Qodana
# uses: actions/upload-artifact@v4
# with:
# name: coverage-reports
# path: 'build/reports/kover/**'

- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2023.2
uses: JetBrains/qodana-action@main
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below
GITHUB_TOKEN: ${{ secrets.FORLIY_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test-v4-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ jobs:
if: ${{ always() }}
with:
name: test-reports-${{ matrix.os }}
path: build/test-reports
path: '**/build/reports/tests'
retention-days: 7
1,281 changes: 77 additions & 1,204 deletions .simbot/dokka-assets/logo-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .simbot/jetbrains.png
Binary file not shown.
90 changes: 90 additions & 0 deletions .simbot/jetbrains.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions .simbot/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .simbot/logo.png
Binary file not shown.
Loading

0 comments on commit 9485917

Please sign in to comment.