Update Default HTTP Worker (IO) #31
This file contains 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: 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 |