Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release drafter fix #2

Merged
merged 3 commits into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name-template: 'v$NEXT_PATCH_VERSION'
tag-template: 'v$NEXT_PATCH_VERSION'
categories:
- title: '✨New Features'
labels:
- 'type:features'

- title: '🐛Bugs Fixes'
labels:
- 'type:fix'

- title: '📖Documentation'
labels:
- 'type:documentation'

- title: '⚙️Configuration'
labels:
- 'type:config'

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
template: |
## Changes
$CHANGES
13 changes: 13 additions & 0 deletions .github/workflows/label_verify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Verify PR labels

on:
pull_request:
types: [ opened, labeled, unlabeled, synchronize ]

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: zwaldowski/match-label-action@v2
with:
allowed: fix, features, documentation, config
15 changes: 8 additions & 7 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: CI
name: Test

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
build:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: ⚡️Checkout
uses: actions/checkout@v3
- name: 🐘Setup Gradle
uses: gradle/gradle-build-action@v2
- name: 🍻Gradle build
run: ./gradlew build
run: ./gradlew test executableJar
# - name: 🚀Upload artifact
# uses: actions/upload-artifact@v2
# uses: actions/upload-artifact@v3
# with:
# name: Desktop JAR (zipped)
# path: desktop/build/libs/Mindustry.jar
# name: JAR
# path: build/libs/*-executable.jar
# retention-days: 1
14 changes: 14 additions & 0 deletions .github/workflows/release-draft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Create draft release

on:
push:
branches:
- main

jobs:
update_draft_release:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Empty file added .github/workflows/release.yaml
Empty file.
10 changes: 10 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.5")
testImplementation(kotlin("test"))
testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.0")
testImplementation("org.mockito:mockito-core:4.2.0")
testImplementation("junit:junit:4.13.2")
}

tasks.test {
Expand All @@ -29,7 +31,7 @@ application {
}

tasks {
val fatJar = register<Jar>("fatJar") {
val fatJar = register<Jar>("executableJar") {
dependsOn.addAll(listOf("compileJava", "compileKotlin", "processResources"))
archiveClassifier.set("executable")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
Expand Down
Loading