From d9ceed6c82cd460404bdaf3e6ddcc69dab9cf3b8 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Sun, 31 Mar 2024 18:34:29 +0200 Subject: [PATCH] add tests for precache (when enabled or disabled) --- .github/workflows/workflow.yml | 36 ++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index a8baf9c..e468177 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -61,7 +61,7 @@ jobs: shell: bash - run: flutter --version shell: bash - test_precache: + test_precache_disabled: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -69,7 +69,39 @@ jobs: with: channel: stable 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 - run: dart --version shell: bash