* Standardize MenuEntry methods, make MenuEntry events extend MenuEntry * Make agility plugin only change entries it needs to * Clean up chat translator by a lot, also implement cloneable instead of just adding a ranodm copy method smh * actions: allow slash in PR title * devtools: Fix checkstyle * examineplugin: Fix tests
73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
YAML
name: OpenOSRS - CI
|
|
|
|
on: [pull_request, push]
|
|
|
|
jobs:
|
|
pr-lint:
|
|
name: PR title
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: PR title lint
|
|
if: github.event_name == 'pull_request'
|
|
uses: seferov/pr-lint-action@master
|
|
with:
|
|
title-regex: '^([\w-/]+): \w+'
|
|
|
|
build:
|
|
runs-on: windows-latest
|
|
name: Build
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@master
|
|
with:
|
|
java-version: 11
|
|
- name: Assembling
|
|
run: gradlew assemble --console=plain
|
|
- name: Building
|
|
run: gradlew build --stacktrace -x test -x checkstyleMain --console=plain
|
|
|
|
test:
|
|
runs-on: windows-latest
|
|
name: Test
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@master
|
|
with:
|
|
java-version: 11
|
|
- name: Assembling
|
|
run: gradlew assemble --console=plain
|
|
- name: Testing
|
|
run: gradlew test --stacktrace --console=plain
|
|
|
|
checkstyle:
|
|
name: Checkstyle
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Set up JDK 11
|
|
uses: actions/setup-java@master
|
|
with:
|
|
java-version: 11
|
|
- name: Assembling
|
|
run: gradlew assemble --console=plain
|
|
- name: Checking code conventions
|
|
run: gradlew checkstyleMain --console=plain
|
|
|
|
approve:
|
|
name: Approve
|
|
needs: [build, test, checkstyle]
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Approve pull request
|
|
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
|
|
uses: hmarr/auto-approve-action@master
|
|
with:
|
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|