Skip to content

chore(deps): update dependency @types/react to v18.2.17 #249

chore(deps): update dependency @types/react to v18.2.17

chore(deps): update dependency @types/react to v18.2.17 #249

Workflow file for this run

name: Check and build for pull requests
on: pull_request
jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup caching
uses: actions/cache@v3
with:
path: node_modules
key: cache-${{ runner.OS }}-${{ hashFiles('**/*.lock') }}
restore-keys: |
cache-${{ runner.OS }}-
- name: Install dependencies
run: |
yarn
- name: Run tests
run: |
yarn lint
yarn test
build-android:
needs: install-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup caching
uses: actions/cache@v3
with:
path: node_modules
key: cache-${{ runner.OS }}-${{ hashFiles('**/*.lock') }}
restore-keys: |
cache-${{ runner.OS }}-
- name: Install dependencies
run: |
yarn
- name: Prepare for building
run: |
sed -i "s/signingConfigs\.release/signingConfigs\.debug/g" android/app/build.gradle
sed -i "/preventRoot/d" android/app/src/main/java/com/unidy2002/thuinfo/MainApplication.kt
sed -i "/preventEmulator/d" android/app/src/main/java/com/unidy2002/thuinfo/MainApplication.kt
sed -i "/verifySignature/d" android/app/src/main/java/com/unidy2002/thuinfo/MainApplication.kt
- name: Build android release
uses: gradle/gradle-build-action@v2
env:
SIGNATURE_DIGEST: ""
with:
arguments: assembleRelease
build-root-directory: android
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: app-release.apk
path: android/app/build/outputs/apk/release/app-release.apk