Skip to content

Commit

Permalink
fix(#24): fix failling test
Browse files Browse the repository at this point in the history
  • Loading branch information
aloundoye authored Nov 4, 2024
1 parent 4f33527 commit 6358a1c
Show file tree
Hide file tree
Showing 8 changed files with 242 additions and 152 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on: [push, pull_request]
jobs:
js-bootstrap:
name: Test JS bootstrap on Node v${{ matrix.node-version }}
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [ 12.x, 14.x, 16.x ]
node-version: [ 18.x, 20.x, 22.x ]

defaults:
run:
Expand All @@ -26,11 +26,11 @@ jobs:

js-library:
name: Test JS library on Node v${{ matrix.node-version }}
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [ 12.x, 14.x, 16.x ]
node-version: [ 18.x, 20.x, 22.x ]

defaults:
run:
Expand All @@ -52,37 +52,46 @@ jobs:
steps:
- name: Checkout
uses: actions/[email protected]

- name: Set up Java
uses: actions/[email protected]
with:
java-version: 1.8
java-version: 11

- name: Setup Android SDK
uses: android-actions/setup-android@v2

- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r17c
- name: Test

- name: Update Gradle Wrapper
run: ./gradlew wrapper --gradle-version 7.6

- name: Build
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: make test-java
run: ./gradlew --daemon --parallel build

publish:
needs: [js-bootstrap, js-library, java]
runs-on: ubuntu-18.04
needs: [ js-bootstrap, js-library, java ]
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Java
uses: actions/[email protected]
with:
java-version: 1.8
java-version: 11
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r17c
- name: Update Gradle Wrapper
run: ./gradlew wrapper --gradle-version 7.6
- name: Set IS_TAG
if: startsWith(github.ref, 'refs/tags/')
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
Expand All @@ -92,4 +101,3 @@ jobs:
run: |
scripts/ci/maven-deploy java/lib/build/libs/bikram-sambat.jar bikramsambat bikram-sambat
scripts/ci/maven-deploy java/android-lib/build/outputs/aar/android-lib-release.aar bikramsambat bikram-sambat-android
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.gradle
/temp_scripts/
/*.log
/.idea
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ allprojects {
}

subprojects {
apply plugin: 'maven'
apply plugin: 'maven-publish'
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue May 16 22:58:22 SGT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-bin.zip
Loading

0 comments on commit 6358a1c

Please sign in to comment.