Skip to content

Commit

Permalink
Standardize GitHub Actions workflow spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
FloEdelmann committed Jan 5, 2025
1 parent 1c6e32e commit f9333e8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-debug-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: set up JDK 21
uses: actions/setup-java@v4
with:
Expand All @@ -21,10 +20,13 @@ jobs:

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew assembleDebug

- name: Rename APK
run: mv app/build/outputs/apk/debug/app-debug.apk app/build/outputs/apk/debug/StreetComplete-debug-$(git log -n 1 --format='%h').apk

- name: Archive APK
uses: actions/upload-artifact@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/generate-quest-list.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Generate quest list

on:
push:
branches:
Expand All @@ -11,14 +12,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

- uses: gradle/actions/setup-gradle@v3

- name: Generate quest list
run: ./gradlew generateQuestList

- uses: actions/upload-artifact@v4
with:
name: quest-list.csv
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Validate Gradle Wrapper"

on:
push:
paths:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Lint"

on:
push:
branches:
Expand All @@ -14,6 +15,7 @@ jobs:
steps:
- name: Checkout the source code
uses: actions/checkout@v4

- name: Run Kotlin linter
id: ktlint-check
uses: musichin/[email protected]
Expand All @@ -22,6 +24,7 @@ jobs:
reporter: plain?group_by_file,output=${{ env.lintResultFilename }}
relative: true
continue-on-error: true

- name: Kotlin linter result
run: |
cat ${{ env.lintResultFilename }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ on:

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

- uses: gradle/actions/setup-gradle@v3

- name: Test with Gradle
run: ./gradlew test

0 comments on commit f9333e8

Please sign in to comment.