Skip to content

Change version number from 3.0.0 to 2.0.0 (#419) #164

Change version number from 3.0.0 to 2.0.0 (#419)

Change version number from 3.0.0 to 2.0.0 (#419) #164

name: leancode_hooks test
on:
push:
branches: [master]
tags-ignore: ['leancode_hooks-v*']
paths:
- 'packages/leancode_hooks/**'
pull_request:
branches: [master]
paths:
- 'packages/leancode_hooks/**'
jobs:
test:
name: Flutter ${{ matrix.channel }}${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- version: 3.27.x
defaults:
run:
working-directory: packages/leancode_hooks
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.channel }}
flutter-version: ${{ matrix.version }}
cache: true
- name: Flutter version
run: flutter --version
- name: Download pub dependencies
run: flutter pub get
- name: Run analyzer
run: |
flutter analyze
dart run custom_lint
- name: Run tests with coverage
run: flutter test --coverage
- name: Dry run pub publish
# We don't want it to fail the CI, it's just to see how would `pub publish` behave.
run: flutter pub publish --dry-run || true
- uses: codecov/codecov-action@v1
with:
flags: leancode_hooks