-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (61 loc) · 2.34 KB
/
Copy path03-flutter-quick-test.yml
File metadata and controls
71 lines (61 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# SPDX-License-Identifier: Unlicense OR 0BSD
# - https://docs.github.com/pt/actions
# - https://github.com/marketplace/actions/flutter-action
name: flutter-quick-test
on:
# _[por-Latn]
# Execute este fluxo de trabalho em qualquer evento push (sem restrição
# de branch) e pull requests.
# [por-Latn]_
pull_request:
# branches:
# - main
push:
# branches:
# - main
jobs:
# flutter-quick-test #########################################################
# _[por-Latn] Teste rápido: se é para falhar, falhe rápido! [por-Latn]_
flutter-quick-test:
name: flutter-quick-test
runs-on: ubuntu-latest
continue-on-error: false
steps:
#### actions/checkout ____________________________________________________
# _[por-Latn] Clone o repositório para esta máquina de testes [por-Latn]_
- uses: actions/checkout@v2
#### actions/setup-java __________________________________________________
# _[por-Latn] Prepare dependências Java [por-Latn]_
- uses: actions/setup-java@v1
with:
java-version: "12.x"
#### subosito/flutter-action _____________________________________________
# @see https://github.com/marketplace/actions/flutter-action
- uses: subosito/flutter-action@v1
with:
# flutter-version: '1.20.2'
channel: "stable" # or: 'beta', 'dev' or 'master'
- run: dart --version
- run: flutter --version
- run: flutter pub get
# _[por-Latn] Execute testes do Flutter [por-Latn]_
- run: flutter test
# flutter-quick-test-okay ####################################################
# _[por-Latn]
# O flutter-quick-test-okay é um exemplo de como um trabalho pode reusar o
# resultado de outro trabalho através da opção 'needs'
#
# IMPORTANTE: pelo menos nesta data, 2021-11-02, conforme
# https://github.community/t/workflow-run-completed-event-triggered-by-failed-workflow/128001
# não é possível usar dependências de arquivos diferentes. Isso explica porque
# o flutter-quick-test é copiado em demais arquivos.
# [por-Latn]_
flutter-quick-test-okay:
name: flutter-quick-test-okay
runs-on: ubuntu-latest
needs:
- flutter-quick-test
steps:
- run: |
echo "flutter-quick-test-okay"
# The workflow must contain at least one job with no dependencies.