Skip to content

Remove failfast

Remove failfast #1174

Workflow file for this run

name: package:cupertino_http CI
on:
push:
branches:
- main
- master
paths:
- '.github/workflows/cupertino.yml'
- 'pkgs/cupertino_http/**'
- 'pkgs/http_client_conformance_tests/**'
- 'pkgs/web_socket_conformance_tests/**'
pull_request:
paths:
- '.github/workflows/cupertino.yml'
- 'pkgs/cupertino_http/**'
- 'pkgs/http_client_conformance_tests/**'
- 'pkgs/web_socket_conformance_tests/**'
schedule:
- cron: "0 0 * * 0"
env:
PUB_ENVIRONMENT: bot.github
jobs:
macos:
name: "macOS: Format & Analyze & Test"
runs-on: macos-latest
defaults:
run:
working-directory: pkgs/cupertino_http
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e
with:
# flutter-version: ${{ matrix.flutter-version }}
channel: 'master'
# flutter-version: 5994e6174f18dbd7b4c8b5c4bfc1469a0d17f261 # Fails Jun 13: https://github.com/flutter/flutter/commit/5994e6174f18dbd7b4c8b5c4bfc1469a0d17f261
# flutter-version: 299e1572272e32e56e577c3ddd9ce98ef40ddeab # Suceeded Jan 21 : https://github.com/flutter/flutter/commit/299e1572272e32e56e577c3ddd9ce98ef40ddeab
# flutter-version: b8a4ddffe59409301dd9c492dce64403ad418a52 # Suceeded Apr 14 : https://github.com/flutter/flutter/commit/b8a4ddffe59409301dd9c492dce64403ad418a52
flutter-version: 66ecc88655b7652c2a76cbab7e067c456c5e06d1 # April 18
# flutter-version: 83483976ec0c2667bb991d052a0e02c691687bf2 # Fails April 24
# flutter-version: 14c45d944e486ab5742898b7beb90b03399884ea # Fails May 4
# flutter-version: f7354da75b2718f1e5407edab92c80c730312215 # Fails May 21 : https://github.com/flutter/flutter/commit/f7354da75b2718f1e5407edab92c80c730312215
- id: install
name: Install dependencies
run: flutter pub get
# - name: Check formatting
# run: dart format --output=show --set-exit-if-changed .
# if: always() && steps.install.outcome == 'success'
# - name: Analyze code
# run: flutter analyze --fatal-infos
# if: always() && steps.install.outcome == 'success'
- name: Start tcpdump
run: |
sudo tcpdump -i any -s 65535 -w ${{ github.workspace }}/capture.pcap &
- name: Run tests
run: |
cd example
flutter pub get
flutter test -d macos integration_test/main.dart --name "defaultSessionConfiguration local close with code and reason"
- name: Stop tcpdump
if: ${{ always() }}
run: |
sleep 2
sudo pkill -SIGQUIT tcpdump
sleep 2
- name: Upload tcpdump capture
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: tcpdump
path: ${{ github.workspace }}/capture.pcap
ios:
name: "iOS: Test"
runs-on: macos-15
defaults:
run:
working-directory: pkgs/cupertino_http
strategy:
fail-fast: false
matrix:
# Test on the minimum supported flutter version and the latest
# version.
flutter-version: ["3.24.0", "any"]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e
with:
flutter-version: ${{ matrix.flutter-version }}
channel: 'stable'
- id: install
name: Install dependencies
run: flutter pub get
- uses: futureware-tech/simulator-action@dab10d813144ef59b48d401cd95da151222ef8cd
with:
os: iOS
os_version: '>=18.6'
- name: Run tests
run: |
cd example
flutter pub get
flutter test integration_test/main.dart --test-randomize-ordering-seed=random