release: freeRASP 9.1.0 (Android SDK 19.2.1, iOS SDK 7.1.2) #111
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - "**/*.md" | |
| - ".github/**" | |
| pull_request: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - "**/*.md" | |
| - ".github/**" | |
| jobs: | |
| static-analysis: | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Lint files | |
| run: npm run eslint -- --max-warnings=0 | |
| - name: Typecheck files | |
| run: npm run typecheck | |
| - name: Format check | |
| run: npm run prettier -- --check | |
| verify-dist-build: | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run npm run tsc | |
| run: npm run tsc | |
| - name: Run npm run build | |
| run: npm run build | |
| - name: Verify dist folder is up-to-date | |
| run: | | |
| git status --porcelain www/dist/ | |
| if [[ $(git status --porcelain www/dist/) ]]; then | |
| echo "::error::www/dist/ folder is not up-to-date. Run 'npm run tsc' and 'npm run build' and commit the changes." | |
| exit 1 | |
| fi | |
| build-android: | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Install JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: "zulu" | |
| java-version: "17" | |
| - name: Finalize Android SDK | |
| run: | | |
| /bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null" | |
| - name: Install Ionic and Cordova | |
| run: npm install -g @ionic/cli cordova | |
| - name: Build plugin | |
| run: npm run build | |
| - name: Prepare clean plugin source | |
| run: | | |
| mkdir -p ../plugin-source | |
| rsync -av --exclude 'example' --exclude '.git' --exclude 'node_modules' ./ ../plugin-source/ | |
| - name: Prepare example app | |
| working-directory: ./example | |
| run: | | |
| npm pkg delete dependencies.cordova-talsec-plugin-freerasp | |
| mkdir -p www | |
| - name: Add plugin from clean source | |
| working-directory: ./example | |
| run: cordova plugin add ../../plugin-source | |
| - name: Add Android platform | |
| working-directory: ./example | |
| run: ionic cordova platform add android --confirm | |
| - name: Build Android | |
| working-directory: ./example | |
| run: ionic cordova build android --release --confirm | |
| build-ios: | |
| timeout-minutes: 45 | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Install Ionic and Cordova | |
| run: npm install -g @ionic/cli cordova | |
| - name: Build plugin | |
| run: npm run build | |
| - name: Prepare clean plugin source | |
| run: | | |
| mkdir -p ../plugin-source | |
| rsync -av --exclude 'example' --exclude '.git' --exclude 'node_modules' ./ ../plugin-source/ | |
| - name: Prepare example app | |
| working-directory: ./example | |
| run: | | |
| npm pkg delete dependencies.cordova-talsec-plugin-freerasp | |
| mkdir -p www | |
| - name: Add plugin from clean source | |
| working-directory: ./example | |
| run: cordova plugin add ../../plugin-source | |
| - name: Add iOS platform | |
| working-directory: ./example | |
| run: ionic cordova platform add ios --confirm | |
| - name: Build iOS | |
| working-directory: ./example | |
| run: ionic cordova build ios --confirm |