-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Javaのバージョンを16に変更 #49 * Gradleのバージョンを7系にあげた #49 * 削除されたメソッドを testImplementation に変更 #49 * duplicatesStrategy入れた * 依存性を定義 * コードフォーマッタをspotlessに変更 * エラーになったのを修正 * コードフォーマットを適用した * groovyもフォーマットするようにしてフォーマットした * CIのJavaのバージョンを変更 * needs beforeを削除 * fix * testとreleaseに分けた * readme更新 * artifactの生成テストを追加 * fix * fix * fix * fix * fix release ci * update readme * テストがコケてたの修正 * Typo * fix * fix format style * fix * fix format * add config * code format * add style check * jcenterメソッドを削除 * getMainClass().set に変更 * enabled を required に変更
- Loading branch information
Showing
12 changed files
with
337 additions
and
201 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
|
||
name: release | ||
|
||
"on": | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
env: | ||
APP_NAME: 'tkfm' | ||
JAVA_VERSION: '16' | ||
JAVAFX_VERSION: '16' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
os_name: windows | ||
archive_cmd: 7z a | ||
artifact_ext: .zip | ||
entrypoint_script_ext: .bat | ||
|
||
- os: macOS-latest | ||
os_name: osx | ||
archive_cmd: tar czf | ||
artifact_ext: .tar.gz | ||
entrypoint_script_ext: '' | ||
|
||
- os: ubuntu-latest | ||
os_name: linux | ||
archive_cmd: tar czf | ||
artifact_ext: .tar.gz | ||
entrypoint_script_ext: '' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
java-package: jdk | ||
architecture: x64 | ||
- name: Build | ||
run: > | ||
ORG_GRADLE_PROJECT_CI_VERSION="${GITHUB_REF##*/}" | ||
ORG_GRADLE_PROJECT_CI_COMMIT_HASH="$(git rev-parse HEAD)" | ||
./gradlew build -x test | ||
- name: Create artifact | ||
run: > | ||
OS_NAME="${{ matrix.os_name }}" | ||
ARCHIVE_CMD="${{ matrix.archive_cmd }}" | ||
ARTIFACT_EXT="${{ matrix.artifact_ext }}" | ||
ENTRYPOINT_SCRIPT_EXT="${{ matrix.entrypoint_script_ext }}" | ||
VERSION="${GITHUB_REF##*/}" | ||
./script/create_artifact.sh | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: 'dist/${{ env.APP_NAME }}_*.*' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
--- | ||
|
||
name: test | ||
|
||
"on": | ||
push: | ||
paths-ignore: | ||
- 'LICENSE' | ||
- 'README.*' | ||
- 'docs/*' | ||
branches: | ||
- master | ||
pull_request: | ||
paths-ignore: | ||
- 'LICENSE' | ||
- 'README.*' | ||
- 'docs/*' | ||
|
||
env: | ||
APP_NAME: 'tkfm' | ||
JAVA_VERSION: '16' | ||
JAVAFX_VERSION: '16' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
java-package: jdk | ||
architecture: x64 | ||
- name: Install xvfb | ||
run: sudo apt install -y xvfb | ||
- name: Check code style | ||
run: ./gradlew spotlessCheck | ||
- name: Test | ||
run: xvfb-run ./gradlew test | ||
- name: Send coverage report | ||
run: bash <(curl -s https://codecov.io/bash) | ||
|
||
build-artifact: | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
VERSION: ci | ||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
os_name: windows | ||
archive_cmd: 7z a | ||
artifact_ext: .zip | ||
entrypoint_script_ext: .bat | ||
|
||
- os: macOS-latest | ||
os_name: osx | ||
archive_cmd: tar czf | ||
artifact_ext: .tar.gz | ||
entrypoint_script_ext: '' | ||
|
||
- os: ubuntu-latest | ||
os_name: linux | ||
archive_cmd: tar czf | ||
artifact_ext: .tar.gz | ||
entrypoint_script_ext: '' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ env.JAVA_VERSION }} | ||
java-package: jdk | ||
architecture: x64 | ||
- name: Build | ||
run: > | ||
ORG_GRADLE_PROJECT_CI_VERSION="${VERSION}" | ||
ORG_GRADLE_PROJECT_CI_COMMIT_HASH="$(git rev-parse HEAD)" | ||
./gradlew build -x test | ||
- name: Create artifact | ||
run: > | ||
OS_NAME="${{ matrix.os_name }}" | ||
ARCHIVE_CMD="${{ matrix.archive_cmd }}" | ||
ARTIFACT_EXT="${{ matrix.artifact_ext }}" | ||
ENTRYPOINT_SCRIPT_EXT="${{ matrix.entrypoint_script_ext }}" | ||
./script/create_artifact.sh | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: artifact | ||
path: | | ||
./dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.