[pull] main from customerio:main #19
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: Test | |
on: [push, pull_request] | |
# Cancel jobs and just run the last one | |
concurrency: | |
group: ${{ github.head_ref }}-unit-test | |
cancel-in-progress: true | |
jobs: | |
unit_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.0.5' | |
channel: 'stable' | |
cache: true | |
cache-key: flutter-3 # optional, change this to force refresh cache | |
cache-path: ${{ runner.tool_cache }}/flutter # optional, change this to specify the cache path | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Run tests | |
run: flutter test |