1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

feat: project init

This commit is contained in:
steven 2023-03-16 08:36:50 +08:00
parent aa5f5b9340
commit 63c4825006
2 changed files with 5 additions and 4 deletions

View File

@ -108,7 +108,7 @@ jobs:
# This appears to be 'Cache Size: ~1230 MB (1290026823 B)' based on watching action logs # This appears to be 'Cache Size: ~1230 MB (1290026823 B)' based on watching action logs
# Repo limit is 10GB; branch caches are independent; branches may read default branch cache. # Repo limit is 10GB; branch caches are independent; branches may read default branch cache.
# We don't want branches to evict main branch snapshot, so save on main, read-only all else # We don't want branches to evict master branch snapshot, so save on master, read-only all else
- name: AVD cache - name: AVD cache
uses: actions/cache@v3 uses: actions/cache@v3
id: avd-cache id: avd-cache
@ -162,7 +162,7 @@ jobs:
- name: AVD Boot and Snapshot Creation - name: AVD Boot and Snapshot Creation
# Only generate a snapshot with a cache miss # Only generate a snapshot with a cache miss
# Comment the if out to generate snapshots on branch for performance testing # Comment the if out to generate snapshots on branch for performance testing
if: "${{ github.event.inputs.clearCaches != '' || (steps.avd-cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/main') }}" if: "${{ github.event.inputs.clearCaches != '' || (steps.avd-cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/master') }}"
uses: reactivecircus/android-emulator-runner@v2 uses: reactivecircus/android-emulator-runner@v2
with: with:
api-level: ${{ matrix.api-level }} api-level: ${{ matrix.api-level }}
@ -184,7 +184,7 @@ jobs:
# Only generate a snapshot for saving with a cache miss # Only generate a snapshot for saving with a cache miss
# Switch the if statements via comment if generating snapshots for performance testing # Switch the if statements via comment if generating snapshots for performance testing
# if: matrix.first-boot-delay != '0' # if: matrix.first-boot-delay != '0'
if: "${{ github.event.inputs.clearCaches != '' || (steps.avd-cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/main') }}" if: "${{ github.event.inputs.clearCaches != '' || (steps.avd-cache.outputs.cache-hit != 'true' && github.ref == 'refs/heads/master') }}"
env: env:
FIRST_BOOT_DELAY: ${{ matrix.first-boot-delay }} FIRST_BOOT_DELAY: ${{ matrix.first-boot-delay }}
uses: reactivecircus/android-emulator-runner@v2 uses: reactivecircus/android-emulator-runner@v2

View File

@ -33,7 +33,8 @@
"prettier": "^2.4.1", "prettier": "^2.4.1",
"react-test-renderer": "18.2.0", "react-test-renderer": "18.2.0",
"ts-jest": "^29.0.5", "ts-jest": "^29.0.5",
"typescript": "^4.9.5" "typescript": "^4.9.5",
"pod-install": "^0.1.37"
}, },
"jest": { "jest": {
"preset": "react-native" "preset": "react-native"