mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
add tests for precache (when enabled or disabled)
This commit is contained in:
parent
a694792022
commit
d9ceed6c82
1 changed files with 34 additions and 2 deletions
36
.github/workflows/workflow.yml
vendored
36
.github/workflows/workflow.yml
vendored
|
@ -61,7 +61,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: flutter --version
|
- run: flutter --version
|
||||||
shell: bash
|
shell: bash
|
||||||
test_precache:
|
test_precache_disabled:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -69,7 +69,39 @@ jobs:
|
||||||
with:
|
with:
|
||||||
channel: stable
|
channel: stable
|
||||||
flutter-version: 3.10.6
|
flutter-version: 3.10.6
|
||||||
cache: true
|
cache: false
|
||||||
|
precache: false
|
||||||
|
- run: dart --version
|
||||||
|
shell: bash
|
||||||
|
- run: flutter --version
|
||||||
|
shell: bash
|
||||||
|
- name: Run first test
|
||||||
|
run: |
|
||||||
|
cd $FLUTTER_ROOT/bin/cache/artifacts
|
||||||
|
ls -lah .
|
||||||
|
test ! -e material_fonts
|
||||||
|
shell: bash
|
||||||
|
- name: Run more tests
|
||||||
|
run: |
|
||||||
|
cd $FLUTTER_ROOT/bin/cache/artifacts/engine
|
||||||
|
test ! -e android-arm
|
||||||
|
test ! -e android-arm-profile
|
||||||
|
test ! -e android-arm-release
|
||||||
|
test ! -e android-arm64
|
||||||
|
test ! -e android-arm64-profile
|
||||||
|
test ! -e android-arm64-release
|
||||||
|
test ! -e linux-x64
|
||||||
|
test ! -e linux-x64-profile
|
||||||
|
test ! -e linux-x64-release
|
||||||
|
test_precache_enabled:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: ./
|
||||||
|
with:
|
||||||
|
channel: stable
|
||||||
|
flutter-version: 3.10.6
|
||||||
|
cache: false
|
||||||
precache: true
|
precache: true
|
||||||
- run: dart --version
|
- run: dart --version
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
Loading…
Add table
Reference in a new issue