summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/checks.yml46
-rw-r--r--.github/workflows/close-if-no-reply.yml12
2 files changed, 34 insertions, 24 deletions
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 4b7c49333..9dbfdcf1a 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -2,9 +2,9 @@ name: Checks
on:
pull_request:
- types: [opened, synchronize, reopened]
+ types: [ opened, synchronize, reopened ]
push:
- branches: [master, develop]
+ branches: [ master, develop ]
jobs:
code-style:
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkstyle
@@ -23,7 +23,7 @@ jobs:
id: vars
run: |
git fetch origin develop
- echo "::set-output name=branchBaseCommit::$(git merge-base origin/develop HEAD)"
+ echo "branchBaseCommit=$(git merge-base origin/develop HEAD)" >> $GITHUB_OUTPUT
- name: Diff-Checkstyle
run: |
curl -s -L https://github.com/yangziwen/diff-check/releases/download/0.0.7/diff-checkstyle.jar > diff-checkstyle.jar
@@ -40,8 +40,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- - uses: actions/checkout@v3
- - uses: gradle/wrapper-validation-action@v1
+ - uses: actions/checkout@v4
+ - uses: gradle/wrapper-validation-action@v2
static-analysis:
name: "Static Code Analysis"
@@ -49,9 +49,14 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
+ - name: Set up JDK 17
+ uses: actions/setup-java@v4
+ with:
+ distribution: 'temurin'
+ java-version: '17'
- name: Cache Gradle
- uses: actions/cache@v3
+ uses: actions/cache@v4
with:
path: |
~/.gradle/caches
@@ -60,7 +65,7 @@ jobs:
- name: Lint :app module recursively
run: ./gradlew :app:lintPlayRelease
- name: SpotBugs
- run: ./gradlew spotbugsPlayDebug spotbugsDebug 2>&1 | grep -i "spotbugs"
+ run: ./gradlew spotbugsPlayDebug spotbugsDebug
unit-test:
name: "Unit Test: ${{ matrix.variant }}"
@@ -83,9 +88,14 @@ jobs:
execute-tests: false
upload-artifact: false
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
+ - name: Set up JDK 17
+ uses: actions/setup-java@v4
+ with:
+ distribution: 'temurin'
+ java-version: '17'
- name: Cache Gradle
- uses: actions/cache@v3
+ uses: actions/cache@v4
with:
path: |
~/.gradle/caches
@@ -98,7 +108,7 @@ jobs:
- name: Test
if: matrix.execute-tests == true
run: ./gradlew test${{ matrix.variant }}UnitTest test${{ matrix.base-variant }}UnitTest
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: matrix.upload-artifact == true
with:
name: app-play-debug.apk
@@ -112,14 +122,14 @@ jobs:
env:
api-level: 30
steps:
- - uses: actions/checkout@v3
- - name: Set up JDK 11
- uses: actions/setup-java@v3
+ - uses: actions/checkout@v4
+ - name: Set up JDK 17
+ uses: actions/setup-java@v4
with:
distribution: 'temurin'
- java-version: '11'
+ java-version: '17'
- name: Cache Gradle
- uses: actions/cache@v3
+ uses: actions/cache@v4
with:
path: |
~/.gradle/caches
@@ -137,7 +147,7 @@ jobs:
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: zsh .github/workflows/runEmulatorTests.sh
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: test-report
diff --git a/.github/workflows/close-if-no-reply.yml b/.github/workflows/close-if-no-reply.yml
index 1c02efce0..16b964b60 100644
--- a/.github/workflows/close-if-no-reply.yml
+++ b/.github/workflows/close-if-no-reply.yml
@@ -15,13 +15,13 @@ jobs:
with:
days-before-stale: 7
days-before-close: 7
- only-labels: 'Awaiting reply'
- stale-issue-label: 'Still awaiting reply'
- stale-pr-label: 'Still awaiting reply'
+ only-labels: 'Needs: Reply'
+ stale-issue-label: 'Needs: Reply still'
+ stale-pr-label: 'Needs: Reply still'
stale-issue-message: "This issue will be closed when we don't get a reply within 7 days."
stale-pr-message: "This PR will be closed when we don't get a reply within 7 days."
- labels-to-remove-when-unstale: 'Awaiting reply'
- close-issue-label: "Close reason: no reply"
- close-pr-label: "Close reason: no reply"
+ labels-to-remove-when-unstale: 'Needs: Reply'
+ close-issue-label: "Close reason: No reply"
+ close-pr-label: "Close reason: No reply"
close-issue-message: "This issue was closed because we didn't get a reply for 14 days."
close-pr-message: "This PR was closed because we didn't get a reply for 14 days."