GitHub actions (#167)
* added a github workflow for closing stale issues * added github PR validation workflows * fixed the dictionary validator missing digits in words * fixed the build failing completely when there no git tags * updated androidx.room 2.4.3 -> 2.5.0
This commit is contained in:
parent
2510aba58a
commit
a419a6c4cb
3 changed files with 56 additions and 9 deletions
19
.github/workflows/build.yml
vendored
Normal file
19
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
name: Build the Project
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# setup
|
||||
- name: Checkout project sources
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
|
||||
# validation
|
||||
- name: Validate Dictionaries
|
||||
run: ./gradlew validateDictionaries
|
||||
- name: Build Release APK
|
||||
run: ./gradlew assemble
|
||||
22
.github/workflows/close-stale-issues.yml
vendored
Normal file
22
.github/workflows/close-stale-issues.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: Close inactive issues
|
||||
on:
|
||||
schedule:
|
||||
- cron: "21 0 * * *"
|
||||
|
||||
jobs:
|
||||
close-issues:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/stale@v4
|
||||
with:
|
||||
days-before-issue-stale: 100
|
||||
days-before-issue-close: 100
|
||||
stale-issue-label: "stale"
|
||||
stale-issue-message: "This issue is stale because it has been open for 100 days with no activity."
|
||||
close-issue-message: "This issue was closed because it has been inactive for 100 days since being marked as stale."
|
||||
days-before-pr-stale: -1
|
||||
days-before-pr-close: -1
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue