Skip to content

Update Default HTTP Worker (IO) #31

Update Default HTTP Worker (IO)

Update Default HTTP Worker (IO) #31

Workflow file for this run

name: Tests
on:
pull_request:
paths-ignore:
- "**.md"
push:
branches:
- main
paths-ignore:
- "**.md"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
with:
fetch-depth: 2
- uses: subosito/flutter-action@v2.7.1
- name: Add pub cache bin to PATH
run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH
- name: Add pub cache to PATH
run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV
- name: Install dependencies
run: flutter pub get
- name: Install dependencies (integration/buid.yaml)
run: |
if test -d "integration/build_yaml"; then
flutter pub get integration/build_yaml
fi
- name: Check format
run: dart format --set-exit-if-changed .
if: matrix.package_path != 'website' && matrix.channel == 'master'
- name: Analyze
run: flutter analyze
if: matrix.channel == 'master'
- name: Run tests
run: |
if test -d "test"; then
if grep -q flutter "pubspec.yaml"; then
flutter test
fi
fi