project: GitHub actions (#1577)

This commit is contained in:
Owain van Brakel
2019-09-10 20:45:09 +02:00
committed by Kyle
parent 3181916d95
commit e9b017a78b
6 changed files with 90 additions and 17 deletions

17
.github/labeler.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
cache: cache/**/*
cache-client: cache-client/**/*
cache-updater: cache-updater/**/*
deobfuscator: deobfuscator/**/*
http-api: http-api/**/*
http-service: http-service/**/*
http-service-plus: http-service-plus/**/*
injected-client: injected-client/**/*
injector-plugin: injector-plugin/**/*
protocol: protocol/**/*
protocol-api: protocol-api/**/*
api: runelite-api/**/*
client: runelite-client/**/*
mixins: runelite-mixins/**/*
rs-api: runescape-api/**/*
rs-client: runescape-client/**/*
wiki-scraper: wiki-scraper/**/*

23
.github/workflows/gradle.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: RunelitePlus continuous integration
on: [pull_request, push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Assembling
run: gradlew assemble --console=plain
- name: Building
run: gradlew build --stacktrace -x test -x checkstyleMain --console=plain
- name: Testing
run: gradlew test --stacktrace --console=plain
- name: Checking code conventions
run: gradlew checkstyleMain --console=plain

15
.github/workflows/greetings.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: First pull request
on:
pull_request:
branches:
- master
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: 'Thank you for contributing to RunelitePlus! Please make sure to join our [Discord](https://discord.gg/Q7wFtCe) and link your GitHub account to your discord account by sending `!ghauth` to our bot.'

12
.github/workflows/label.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
name: Pull request labeler
on: [pull_request]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

23
.github/workflows/stale.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Mark stale issues and pull requests
on:
schedule:
- cron: "0 0 * * *"
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
exempt-issue-label: 'awaiting-approval'
exempt-pr-label: 'awaiting-approval'
days-before-stale: 60
days-before-close: 30