fix: theme sass deprecation (#234) #154
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: '@nativescript/template-* -> test' | |
on: push | |
jobs: | |
test: | |
runs-on: macos-12 | |
name: ${{ matrix.template }} (node ${{ matrix.node }}) | |
strategy: | |
matrix: | |
template: | |
- template-blank | |
- template-blank-vue-ts | |
- template-hello-world-ng | |
- template-tab-navigation | |
- template-blank-ng | |
- template-drawer-navigation | |
- template-hello-world-ts | |
- template-tab-navigation-ng | |
- template-blank-react | |
- template-drawer-navigation-ng | |
- template-master-detail | |
- template-tab-navigation-ts | |
- template-blank-svelte | |
- template-drawer-navigation-ts | |
- template-master-detail-ng | |
- template-tab-navigation-vue | |
- template-blank-ts | |
- template-drawer-navigation-vue | |
- template-master-detail-ts | |
- template-blank-vue | |
- template-hello-world | |
- template-master-detail-vue | |
node: [16] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
path: 'templates' | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3' | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Install Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
cache-dependency-path: templates/package-lock.json | |
- name: Cache Gradle | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/package-lock.json') }}-v1 | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
- name: Cache Python | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-python-cache-${{ env.pythonLocation }}-${{ hashFiles('**/package-lock.json') }} | |
path: ${{ env.pythonLocation }} | |
- name: Setup | |
working-directory: templates | |
run: | | |
python3 -m pip install --upgrade pip six | |
npm i -g nativescript@next --ignore-scripts | |
ns usage-reporting disable | |
ns error-reporting disable | |
ns -v | |
ns doctor | |
npm install | |
npm run prepare-templates | |
# - name: "Uninstall [email protected]" | |
# run: | | |
# SDKMANAGER=$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager | |
# echo y | $SDKMANAGER --uninstall "build-tools;31.0.0" | |
- name: Create app from template | |
env: | |
TEMPLATE_NAME: ${{ matrix.template }} | |
run: | | |
echo "---" | |
echo "Creating myApp using template: $(pwd)/templates/packages/$TEMPLATE_NAME" | |
echo "---" | |
ns create myApp --template="$(pwd)/templates/packages/$TEMPLATE_NAME" | |
cd myApp | |
npm install | |
- name: Test iOS Build | |
working-directory: myApp | |
run: ns build ios | |
- name: Test Android Build | |
working-directory: myApp | |
run: ns build android |