fix(#20): fix incorrect days in 2081 #44
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
js-bootstrap: | |
name: Test JS bootstrap on Node v${{ matrix.node-version }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [ 18.x, 20.x, 22.x ] | |
defaults: | |
run: | |
working-directory: ./bootstrap | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm test | |
js-library: | |
name: Test JS library on Node v${{ matrix.node-version }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [ 18.x, 20.x, 22.x ] | |
defaults: | |
run: | |
working-directory: ./js | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm test | |
java: | |
name: Test Java | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up Java | |
uses: actions/[email protected] | |
with: | |
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: Build | |
env: | |
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | |
run: ./gradlew --daemon --parallel build | |
publish: | |
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: 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 | |
- run: echo "BRANCH=$BRANCH_NAME" >> $GITHUB_ENV | |
- name: maven-deploy | |
if: ${{ github.event_name != 'pull_request' }} | |
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 |