chore(deps): bump shared_preferences from 2.5.4 to 2.5.5 #776
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: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: read-all | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Scan for secrets | |
| run: bash ./tool/secret_scan.sh | |
| - name: Create .env for CI | |
| run: cp .env.ci .env | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@0ca7a949e71ae44c8e688a51c5e7e93b2c87e295 # v2 | |
| with: | |
| flutter-version: "3.38.9" | |
| channel: "stable" | |
| cache: true | |
| - name: Flutter version | |
| run: flutter --version | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Check formatting | |
| run: dart format --set-exit-if-changed . | |
| - name: Socialmesh lint | |
| run: bash scripts/hooks/socialmesh-lint.sh --all | |
| - name: Analyze | |
| run: flutter analyze | |
| - name: Run tests | |
| run: | | |
| set -o pipefail | |
| # Run tests with expanded output, retry once on failure to catch flaky tests | |
| if ! flutter test --reporter expanded 2>&1 | tee test_output.log; then | |
| echo "::warning::First test run failed, retrying to check for flaky tests..." | |
| echo "::group::First Run Failure Details" | |
| tail -100 test_output.log | |
| echo "::endgroup::" | |
| # Retry once | |
| if ! flutter test --reporter expanded 2>&1 | tee test_output_retry.log; then | |
| echo "::error::Tests failed on retry - this is a real failure" | |
| echo "::group::Retry Failure Details" | |
| tail -200 test_output_retry.log | |
| echo "::endgroup::" | |
| exit 1 | |
| else | |
| echo "::warning::Tests passed on retry - detected flaky test! Check first run output above." | |
| fi | |
| fi |