42
.github/workflows/build.yml
vendored
42
.github/workflows/build.yml
vendored
@@ -6,7 +6,7 @@ jobs:
|
|||||||
pr-lint:
|
pr-lint:
|
||||||
name: PR title
|
name: PR title
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: PR title lint
|
- name: PR title lint
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
@@ -15,49 +15,55 @@ jobs:
|
|||||||
title-regex: '^([\w-/]+): \w+'
|
title-regex: '^([\w-/]+): \w+'
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v1
|
||||||
|
- name: Make gradlew executable
|
||||||
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@master
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
run: gradlew assemble --console=plain
|
run: ./gradlew assemble --console=plain
|
||||||
- name: Building
|
- name: Building
|
||||||
run: gradlew build --stacktrace -x test -x checkstyleMain --console=plain
|
run: ./gradlew build --stacktrace -x test -x checkstyleMain --console=plain
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v1
|
||||||
|
- name: Make gradlew executable
|
||||||
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@master
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
run: gradlew assemble --console=plain
|
run: ./gradlew assemble --console=plain
|
||||||
- name: Testing
|
- name: Testing
|
||||||
run: gradlew test --stacktrace --console=plain
|
run: ./gradlew test --stacktrace --console=plain
|
||||||
|
|
||||||
checkstyle:
|
checkstyle:
|
||||||
name: Checkstyle
|
name: Checkstyle
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v1
|
||||||
|
- name: Make gradlew executable
|
||||||
|
run: chmod +x ./gradlew
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@master
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Assembling
|
- name: Assembling
|
||||||
run: gradlew assemble --console=plain
|
run: ./gradlew assemble --console=plain
|
||||||
- name: Checking code conventions
|
- name: Checking code conventions
|
||||||
run: gradlew checkstyleMain --console=plain
|
run: ./gradlew checkstyleMain --console=plain
|
||||||
|
|
||||||
approve:
|
approve:
|
||||||
name: Approve
|
name: Approve
|
||||||
@@ -67,6 +73,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Approve pull request
|
- name: Approve pull request
|
||||||
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
|
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
|
||||||
uses: hmarr/auto-approve-action@master
|
uses: hmarr/auto-approve-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
30
.github/workflows/gradle.yml
vendored
30
.github/workflows/gradle.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v1
|
||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Update Gradle Wrapper
|
- name: Update Gradle Wrapper
|
||||||
@@ -28,17 +28,17 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v1
|
||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
- name: Update Gradle dependencies
|
- name: Update Gradle dependencies
|
||||||
run: ./gradlew useLatestVersions --console=plain
|
run: ./gradlew useLatestVersions --console=plain
|
||||||
- name: Create Gradle dependencies update Pull Request
|
- name: Create Gradle dependencies update Pull Request
|
||||||
uses: Owain94/create-pull-request@master
|
uses: Owain94/create-pull-request@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.OpenOSRS }}
|
GITHUB_TOKEN: ${{ secrets.OpenOSRS }}
|
||||||
PULL_REQUEST_BRANCH: GRADLE-DEPENDENCY-UPDATE
|
PULL_REQUEST_BRANCH: GRADLE-DEPENDENCY-UPDATE
|
||||||
PULL_REQUEST_TITLE: 'project: Update gradle dependencies'
|
PULL_REQUEST_TITLE: 'project: Update gradle dependencies'
|
||||||
PULL_REQUEST_BODY: This is an auto-generated PR with an updated gradle dependencies versions
|
PULL_REQUEST_BODY: This is an auto-generated PR with an updated gradle dependencies versions
|
||||||
COMMIT_MESSAGE: 'project: Update gradle dependencies'
|
COMMIT_MESSAGE: 'project: Update gradle dependencies'
|
||||||
PULL_REQUEST_LABELS: automated pull request, gradle
|
PULL_REQUEST_LABELS: automated pull request, gradle
|
||||||
6
.github/workflows/scraper.yml
vendored
6
.github/workflows/scraper.yml
vendored
@@ -9,9 +9,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v1
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 11
|
||||||
uses: actions/setup-java@master
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Make gradlew executable
|
- name: Make gradlew executable
|
||||||
@@ -36,4 +36,4 @@ jobs:
|
|||||||
PULL_REQUEST_TITLE: 'Client: Update NPC stats'
|
PULL_REQUEST_TITLE: 'Client: Update NPC stats'
|
||||||
PULL_REQUEST_BODY: This is an auto-generated PR with changes from the OSRS wiki
|
PULL_REQUEST_BODY: This is an auto-generated PR with changes from the OSRS wiki
|
||||||
COMMIT_MESSAGE: 'Client: Update NPC stats'
|
COMMIT_MESSAGE: 'Client: Update NPC stats'
|
||||||
PULL_REQUEST_LABELS: automated pull request, NPC stats
|
PULL_REQUEST_LABELS: automated pull request, NPC stats
|
||||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -19,4 +19,4 @@ jobs:
|
|||||||
exempt-issue-label: 'awaiting-approval'
|
exempt-issue-label: 'awaiting-approval'
|
||||||
exempt-pr-label: 'awaiting-approval'
|
exempt-pr-label: 'awaiting-approval'
|
||||||
days-before-stale: 60
|
days-before-stale: 60
|
||||||
days-before-close: 30
|
days-before-close: 30
|
||||||
Reference in New Issue
Block a user