diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d387dde..9fedc79 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,25 +1,25 @@ name: release -on: +on: push: tags: - - 'v*' + - 'v*' env: flutter_version: "2.2.0" - + jobs: build_deploy: name: Build apk and release runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Cache Flutter dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: /opt/hostedtoolcache/flutter key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }} - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: flutter-version: ${{ env.flutter_version }} channel: 'stable' @@ -35,11 +35,10 @@ jobs: # https://github.com/ncipollo/release-action - name: Extract release notes id: extract-release-notes - uses: ffurrer2/extract-release-notes@v1 + uses: ffurrer2/extract-release-notes@v2 - name: Create a Release APK - uses: ncipollo/release-action@v1 + uses: ncipollo/release-action@v2 with: artifacts: "build/app/outputs/apk/release/*.apk" token: ${{ secrets.GITHUB_TOKEN }} body: ${{ steps.extract-release-notes.outputs.release_notes }} - \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1534211..64f57ba 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,7 +4,7 @@ name: test on: [push,pull_request_review] env: flutter_version: "2.2.0" - + #A workflow run is made up of one or more jobs. Jobs run in parallel by default. jobs: @@ -15,15 +15,15 @@ jobs: steps: # The branch or tag ref that triggered the workflow will be checked out. # https://github.com/actions/checkout - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 # Setup a flutter environment. # https://github.com/marketplace/actions/flutter-action - name: Cache Flutter dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: /opt/hostedtoolcache/flutter key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }} - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: flutter-version: '${{ env.flutter_version }}' channel: 'stable' @@ -40,7 +40,7 @@ jobs: # Upload coverage reports to Codecov # https://github.com/marketplace/actions/codecov - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} file: coverage/lcov.info @@ -70,13 +70,13 @@ jobs: '$1 == device { print $2 }' ) xcrun simctl boot "${UDID:?No Simulator with this name found}" - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Cache Flutter dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: /opt/hostedtoolcache/flutter key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }} - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: flutter-version: '${{ env.flutter_version }}' channel: 'stable' @@ -101,13 +101,13 @@ jobs: target: [default] needs: unit-testing steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Cache Flutter dependencies - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: /opt/hostedtoolcache/flutter key: ${{ runner.OS }}-flutter-install-cache-${{ env.flutter_version }} - - uses: subosito/flutter-action@v1 + - uses: subosito/flutter-action@v2 with: flutter-version: '${{ env.flutter_version }}' channel: 'stable' @@ -119,10 +119,10 @@ jobs: - name: Run Flutter Driver tests #GitHub Action for installing, configuring and running Android Emulators (work only Mac OS) #https://github.com/ReactiveCircus/android-emulator-runner - uses: reactivecircus/android-emulator-runner@v1 + uses: reactivecircus/android-emulator-runner@v2 with: api-level: ${{ matrix.api-level }} target: ${{ matrix.target }} arch: x86_64 profile: Nexus 6 - script: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/main_test.dart \ No newline at end of file + script: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/main_test.dart