Skip to content

Commit

Permalink
Actions dependencies updated
Browse files Browse the repository at this point in the history
  • Loading branch information
salvadordeveloper committed Feb 21, 2022
1 parent 0a0a249 commit 2ad4888
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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 }}

26 changes: 13 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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'
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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
script: flutter drive --driver=test_driver/integration_test.dart --target=integration_test/main_test.dart

0 comments on commit 2ad4888

Please sign in to comment.