build(deps): npm audit fix (#866) #1442
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: Smoke test on macOS | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
env: | |
HUSKY: 0 | |
jobs: | |
build: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
xcode: [14, 15] | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: 18 | |
- name: set up JDK 11 | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Environment Information | |
run: | | |
node --version | |
npm --version | |
java --version | |
- uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: ${{ matrix.xcode }} | |
- name: Setup | |
run: | | |
brew install gnu-sed | |
- name: Setup Project | |
run: | | |
npm i -g cordova | |
cordova create lottie-smoke-test | |
cd lottie-smoke-test | |
cordova platform add ios@latest | |
gsed -i '4i\ <preference name="SwiftVersion" value="5" />' config.xml | |
cordova platform add android@12 | |
gsed -i '4i\ <preference name="GradlePluginKotlinEnabled" value="true" />' config.xml | |
gsed -i '4i\ <preference name="GradlePluginKotlinVersion" value="1.7.22" />' config.xml | |
- name: Install Plugins | |
run: | | |
cd lottie-smoke-test | |
cordova plugin add $GITHUB_WORKSPACE --link | |
- name: Build Project | |
run: | | |
cd lottie-smoke-test | |
cordova build android | |
cordova build ios |