Skip to content

Commit b4b25e3

Browse files
committed
initial commit
0 parents  commit b4b25e3

28 files changed

+1150
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*.{java,kt,kts}]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
labels:
8+
- "ci"

.github/workflows/gradle.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Build with Gradle
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: build-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
gradle:
15+
strategy:
16+
matrix:
17+
#os: [ubuntu-latest, macos-latest, windows-latest]
18+
os: [ubuntu-latest]
19+
# others = slow
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
23+
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
24+
with:
25+
distribution: temurin
26+
java-version: 11
27+
28+
- name: Setup Gradle
29+
uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2
30+
31+
- name: Execute Gradle build
32+
run: ./gradlew build
33+
34+
- name: Build shadowJar
35+
run: ./gradlew shadowJar
36+
37+
- name: Upload shadowJar
38+
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
39+
with:
40+
name: plugin-shadow
41+
path: build/libs/*-*-all.jar
42+
43+
create-release:
44+
needs: gradle
45+
runs-on: ubuntu-latest
46+
if: (github.event_name == 'push' && github.ref == 'refs/heads/master')
47+
48+
steps:
49+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
50+
with:
51+
name: plugin-shadow
52+
path: release-artifacts/
53+
- name: Create release
54+
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
55+
with:
56+
removeArtifacts: true
57+
allowUpdates: true
58+
artifactErrorsFailBuild: true
59+
artifacts: "release-artifacts/*"
60+
body: |
61+
This release should only be used if testing one of the features that have not made it to the plugin hub yet.
62+
63+
Note: To use this build, you must run from terminal (or command prompt): `java -ea -jar actionlogger-*-all.jar` (be sure to specify the correct version and path to the file). Also, very recent java versions may require [additional VM options](https://github.com/runelite/runelite/wiki/Building-with-IntelliJ-IDEA#jdks-16).
64+
65+
Latest Change:
66+
67+
${{ github.event.head_commit.message }}
68+
prerelease: true
69+
name: Nightly Release
70+
tag: nightly-build

.github/workflows/gradle7.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build with Gradle 7.x
2+
on: pull_request
3+
jobs:
4+
gradle:
5+
strategy:
6+
matrix:
7+
os: [ubuntu-latest]
8+
runs-on: ${{ matrix.os }}
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-java@v4
12+
with:
13+
distribution: temurin
14+
java-version: 11
15+
16+
- name: Setup hub gradle version
17+
uses: gradle/actions/setup-gradle@v3
18+
with:
19+
gradle-version: 7.4 # https://github.com/runelite/plugin-hub/blob/master/package/gradle/wrapper/gradle-wrapper.properties
20+
21+
- name: Build plugin using hub gradle version
22+
run: ./gradlew shadowJar --exclude-task test # tests are already executed by primary gradle task

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Lint
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
10+
concurrency:
11+
group: lint-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
lint:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Check formatting with Prettier
22+
uses: actionsx/prettier@3d9f7c3fa44c9cb819e68292a328d7f4384be206
23+
with:
24+
# prettier CLI arguments.
25+
args: --write .
26+
- name: Show diff
27+
run: git --no-pager diff --exit-code --color=never
28+
shell: bash
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update Resources
2+
on:
3+
schedule:
4+
- cron: "0 4 * * *"
5+
workflow_dispatch:
6+
7+
jobs:
8+
update-resources:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-java@v4
13+
with:
14+
distribution: temurin
15+
java-version: 11
16+
17+
- name: Setup Gradle
18+
uses: gradle/actions/setup-gradle@v3
19+
20+
- name: Execute Resource Generator
21+
run: ./gradlew generateResources
22+
23+
- name: Get current date
24+
id: date
25+
run: echo "date=$(date +'%Y-%m')" >> $GITHUB_OUTPUT
26+
27+
- name: Create Pull Request
28+
uses: peter-evans/create-pull-request@v6
29+
with:
30+
title: "chore: update rarity data from ${{ steps.date.outputs.date }} wiki"
31+
commit-message: "chore: update rarity data from ${{ steps.date.outputs.date }} wiki"
32+
branch: automated/chore/update-resources
33+
reviewers: iProdigy

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.gradle
2+
build
3+
.idea/
4+
.project
5+
.settings/
6+
.classpath
7+
nbactions.xml
8+
nb-configuration.xml
9+
nbproject/

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore build directory
2+
build/
3+
4+
# Ignore runtime resources
5+
src/main/resources/

.prettierrc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
trailingComma: none
2+
endOfLine: auto
3+
quoteProps: preserve
4+
overrides:
5+
- files: "*.md"
6+
options:
7+
proseWrap: preserve

.run/Run Action Logger.run.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<component name="ProjectRunConfigurationManager">
2+
<configuration default="false" name="Run Action Logger" type="Application" factoryName="Application">
3+
<option name="MAIN_CLASS_NAME" value="actionlogger.ActionLoggerTest" />
4+
<module name="actionlogger.test" />
5+
<option name="PROGRAM_PARAMETERS" value="--debug --developer-mode" />
6+
<option name="VM_PARAMETERS" value="-ea --illegal-access=warn --add-opens=java.desktop/sun.awt=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED" />
7+
<method v="2">
8+
<option name="Make" enabled="true" />
9+
</method>
10+
</configuration>
11+
</component>

0 commit comments

Comments
 (0)