Update actions

This commit is contained in:
Vankka 2024-06-22 11:12:13 +03:00
parent 6ebca2321d
commit 5ffc40b96f
No known key found for this signature in database
GPG Key ID: 62E48025ED4E7EBB
5 changed files with 29 additions and 23 deletions

View File

@ -10,13 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle
run: ./gradlew build --no-daemon
env:

View File

@ -10,20 +10,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "adopt"
java-version: "17"
- name: Make gradlew executable
run: "sudo chmod +x gradlew"
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build i18n application
run: "./gradlew i18n:build"
- name: Generate translation source
run: "java -jar i18n/build/libs/i18n-all.jar"
- name: Download translations from Crowdin
uses: crowdin/github-action@v1
uses: crowdin/github-action@v2
with:
upload_sources: false
upload_translations: false

View File

@ -9,20 +9,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: "adopt"
java-version: "17"
- name: Make gradlew executable
run: "sudo chmod +x gradlew"
distribution: 'temurin'
java-version: 17
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build i18n application
run: "./gradlew i18n:build"
- name: Generate translation source
run: "java -jar i18n/build/libs/i18n-all.jar"
- name: Upload source to Crowdin
uses: crowdin/github-action@v1
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false

View File

@ -1,4 +1,5 @@
name: "Validate Gradle Wrapper"
name: Validate Gradle Wrapper
on:
push:
paths: ["gradle/wrapper/**"]
@ -10,5 +11,5 @@ jobs:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: actions/checkout@v4
- uses: gradle/actions/wrapper-validation@v3

View File

@ -1,4 +1,5 @@
name: 'Dependency Review'
name: Dependency Review
on: [pull_request]
permissions:
@ -9,6 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v1
uses: actions/dependency-review-action@v4