Skip to content

fix: make android mocha tests run again #4472

fix: make android mocha tests run again

fix: make android mocha tests run again #4472

Workflow file for this run

name: Build
on:
push:
branches:
- master
- "[0-9]+_[0-9]+_X"
- actions_tests
pull_request:
jobs:
android:
runs-on: ubuntu-20.04
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
USE_CCACHE: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Android build
uses: ./.github/actions/build-android
with:
node-version: '20.x'
java-version: '17'
ios:
runs-on: macos-13
name: iOS
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
USE_CCACHE: 1
DEVELOPER_DIR: /Applications/Xcode_14.3.app/Contents/Developer
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: iOS build
uses: ./.github/actions/build-ios
with:
node-version: '20.x'
js:
runs-on: ubuntu-latest
name: JavaScript
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint:js
package:
runs-on: macos-13
name: Package
env:
SDK_BUILD_CACHE_DIR: ${{ github.workspace }}/.native-modules
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
needs: [android, ios, js]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create version tag
run: |
PACKAGE_VERSION=$(sed -n 's/^ *"version": *"//p' package.json | tr -d '"' | tr -d ',' | tr -d '[[:space:]]')
TIMESTAMP=`date +'%Y%m%d%H%M%S'`
VTAG="${PACKAGE_VERSION}.v${TIMESTAMP}"
echo "vtag=${VTAG}" >> $GITHUB_ENV
- name: Package
uses: ./.github/actions/package
with:
node-version: '20.x'
java-version: '17'
vtag: ${{ env.vtag }}