Enhance README with function descriptions and usage examples #27
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-18.04 | |
strategy: | |
matrix: | |
node-version: [ 12.x, 14.x, 16.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-18.04 | |
strategy: | |
matrix: | |
node-version: [ 12.x, 14.x, 16.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: 1.8 | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- uses: nttld/setup-ndk@v1 | |
id: setup-ndk | |
with: | |
ndk-version: r17c | |
- name: Test | |
env: | |
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | |
run: make test-java | |
publish: | |
needs: [js-bootstrap, js-library, java] | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up Java | |
uses: actions/[email protected] | |
with: | |
java-version: 1.8 | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- uses: nttld/setup-ndk@v1 | |
id: setup-ndk | |
with: | |
ndk-version: r17c | |
- 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 | |