Skip to content

Commit

Permalink
Merge pull request #491 from matomo-org/FixCI
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
hannesa2 authored May 8, 2024
2 parents c39738c + 621d312 commit 5a365a7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 17 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/pull-request-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
branches:
- master
pull_request:
branches:
- master

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

Expand Down Expand Up @@ -38,7 +37,7 @@ jobs:
with:
distribution: 'adopt'
java-version: 17
- uses: gradle/wrapper-validation-action@v3
- uses: gradle/actions/wrapper-validation@v3
- name: Build project
run: ./gradlew assembleDebug
- name: Run tests
Expand Down Expand Up @@ -72,7 +71,7 @@ jobs:
path: tracker/build/reports/lint-results.html

EspressoTest:
runs-on: macOS-latest
runs-on: macOS-13
needs:
- env-job
steps:
Expand All @@ -91,9 +90,9 @@ jobs:
distribution: 'adopt'
java-version: 17
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.4
uses: hannesa2/action-android/[email protected].16.5
- name: Run instrumentation tests
uses: malinskiy/action-android/emulator-run-cmd@release/0.1.4
uses: hannesa2/action-android/[email protected].16.5
with:
cmd: ./gradlew cAT --continue
api: 30
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/update-gradle-wrapper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update Gradle Wrapper

on:
schedule:
- cron: "0 6 * * MON"

jobs:
update-gradle-wrapper:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
- name: Update Gradle Wrapper
uses: gradle-update/update-gradle-wrapper-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
set-distribution-checksum: false
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
20 changes: 10 additions & 10 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand All @@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2

goto fail

Expand Down

0 comments on commit 5a365a7

Please sign in to comment.