Skip to content

Commit 4bd5510

Browse files
committed
v0.3.0, .github/workflows/README.md
1 parent b38ebd5 commit 4bd5510

File tree

5 files changed

+83
-36
lines changed

5 files changed

+83
-36
lines changed

.github/workflows/03-flutter-quick-test.yml

+34-6
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,66 @@
66
name: flutter-quick-test
77

88
on:
9+
# _[por-Latn]
10+
# Execute este fluxo de trabalho em qualquer evento push (sem restrição
11+
# de branch) e pull requests.
12+
# [por-Latn]_
13+
pull_request:
14+
# branches:
15+
# - main
916
push:
10-
# _[por-Latn] Execute este fluxo de trabalho em qualquer evento push [por-Latn]_
17+
# branches:
18+
# - main
1119

1220
jobs:
13-
21+
# flutter-quick-test #########################################################
1422
# _[por-Latn] Teste rápido: se é para falhar, falhe rápido! [por-Latn]_
1523
flutter-quick-test:
1624
name: flutter-quick-test
1725
runs-on: ubuntu-latest
1826
continue-on-error: false
1927
steps:
20-
2128
#### actions/checkout ____________________________________________________
22-
# _[por-Latn] Clone o repositório para esta máquine de testes [por-Latn]_
29+
# _[por-Latn] Clone o repositório para esta máquina de testes [por-Latn]_
2330
- uses: actions/checkout@v2
2431

2532
#### actions/setup-java __________________________________________________
2633
# _[por-Latn] Prepare dependências Java [por-Latn]_
2734
- uses: actions/setup-java@v1
2835
with:
29-
java-version: '12.x'
36+
java-version: "12.x"
3037

3138
#### subosito/flutter-action _____________________________________________
3239
# @see https://github.com/marketplace/actions/flutter-action
3340

3441
- uses: subosito/flutter-action@v1
3542
with:
3643
# flutter-version: '1.20.2'
37-
channel: 'stable' # or: 'beta', 'dev' or 'master'
44+
channel: "stable" # or: 'beta', 'dev' or 'master'
3845
- run: dart --version
3946
- run: flutter --version
4047
- run: flutter pub get
4148

4249
# _[por-Latn] Execute testes do Flutter [por-Latn]_
4350
- run: flutter test
51+
52+
# flutter-quick-test-okay ####################################################
53+
# _[por-Latn]
54+
# O flutter-quick-test-okay é um exemplo de como um trabalho pode reusar o
55+
# resultado de outro trabalho através da opção 'needs'
56+
#
57+
# IMPORTANTE: pelo menos nesta data, 2021-11-02, conforme
58+
# https://github.community/t/workflow-run-completed-event-triggered-by-failed-workflow/128001
59+
# não é possível usar dependências de arquivos diferentes. Isso explica porque
60+
# o flutter-quick-test é copiado em demais arquivos.
61+
# [por-Latn]_
62+
flutter-quick-test-okay:
63+
name: flutter-quick-test-okay
64+
runs-on: ubuntu-latest
65+
needs:
66+
- flutter-quick-test
67+
steps:
68+
- run: |
69+
echo "flutter-quick-test-okay"
70+
71+
# The workflow must contain at least one job with no dependencies.

.github/workflows/05-flutter-build.yml renamed to .github/workflows/05-flutter-build-devel.yml

+10-15
Original file line numberDiff line numberDiff line change
@@ -16,57 +16,55 @@ on:
1616
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
1717

1818
jobs:
19-
19+
# flutter-quick-test #########################################################
2020
# _[por-Latn] Teste rápido: se é para falhar, falhe rápido! [por-Latn]_
2121
flutter-quick-test:
2222
name: flutter-quick-test
2323
runs-on: ubuntu-latest
2424
continue-on-error: false
2525
steps:
26-
2726
#### actions/checkout ____________________________________________________
28-
# _[por-Latn] Clone o repositório para esta máquine de testes [por-Latn]_
27+
# _[por-Latn] Clone o repositório para esta máquina de testes [por-Latn]_
2928
- uses: actions/checkout@v2
3029

3130
#### actions/setup-java __________________________________________________
3231
# _[por-Latn] Prepare dependências Java [por-Latn]_
3332
- uses: actions/setup-java@v1
3433
with:
35-
java-version: '12.x'
34+
java-version: "12.x"
3635

3736
#### subosito/flutter-action _____________________________________________
3837
# @see https://github.com/marketplace/actions/flutter-action
3938

4039
- uses: subosito/flutter-action@v1
4140
with:
4241
# flutter-version: '1.20.2'
43-
channel: 'stable' # or: 'beta', 'dev' or 'master'
42+
channel: "stable" # or: 'beta', 'dev' or 'master'
4443
- run: dart --version
4544
- run: flutter --version
4645
- run: flutter pub get
4746

4847
# _[por-Latn] Execute testes do Flutter [por-Latn]_
4948
- run: flutter test
5049

51-
5250
flutter-build-unixes:
53-
name: Test on ${{ matrix.os }}
51+
name: flutter-build-${{ matrix.os }}
5452
runs-on: ${{ matrix.os }}
5553
strategy:
5654
matrix:
5755
# os: [ubuntu-latest, windows-latest, macos-latest]
5856
os: [ubuntu-latest, macos-latest]
59-
needs: [ flutter-quick-test ]
57+
needs: [flutter-quick-test]
6058
steps:
6159
- uses: actions/checkout@v2
6260
- uses: actions/setup-java@v1
6361
with:
64-
java-version: '12.x'
62+
java-version: "12.x"
6563
- uses: subosito/flutter-action@v1
6664
with:
6765
# flutter-version: '1.20.2'
6866
# channel: 'beta'
69-
channel: 'stable' # or: 'beta', 'dev' or 'master'
67+
channel: "stable" # or: 'beta', 'dev' or 'master'
7068
- run: dart --version
7169
- run: flutter --version
7270
- run: flutter pub get
@@ -105,20 +103,19 @@ jobs:
105103
path: build/ios/iphoneos/Runner.app
106104
retention-days: 5 # 5 days retention (this is an huge folder)
107105

108-
109106
flutter-build-windows:
110107
name: Test on ${{ matrix.os }}
111108
runs-on: ${{ matrix.os }}
112109
strategy:
113110
matrix:
114111
# os: [ubuntu-latest, windows-latest, macos-latest]
115112
os: [windows-latest]
116-
needs: [ flutter-quick-test ]
113+
needs: [flutter-quick-test]
117114
steps:
118115
- uses: actions/checkout@v2
119116
- uses: actions/setup-java@v1
120117
with:
121-
java-version: '12.x'
118+
java-version: "12.x"
122119
- uses: subosito/flutter-action@v1
123120
with:
124121
# 2021-10-25: channel: beta required for windows
@@ -142,5 +139,3 @@ jobs:
142139
# - avancado https://github.com/anton-yurchenko/git-release
143140
# - "Unreleased" https://github.com/anton-yurchenko/git-release/issues/47
144141
# - sem changelog: https://github.com/svenstaro/upload-release-action
145-
146-

.github/workflows/07-flutter-release.yml

+12-15
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,30 @@ on:
1212
- v[0-9]+.[0-9]+.[0-9]+
1313

1414
jobs:
15-
15+
# flutter-quick-test #########################################################
1616
# _[por-Latn] Teste rápido: se é para falhar, falhe rápido! [por-Latn]_
1717
flutter-quick-test:
1818
name: flutter-quick-test
1919
runs-on: ubuntu-latest
2020
continue-on-error: false
2121
steps:
22-
2322
#### actions/checkout ____________________________________________________
24-
# _[por-Latn] Clone o repositório para esta máquine de testes [por-Latn]_
23+
# _[por-Latn] Clone o repositório para esta máquina de testes [por-Latn]_
2524
- uses: actions/checkout@v2
2625

2726
#### actions/setup-java __________________________________________________
2827
# _[por-Latn] Prepare dependências Java [por-Latn]_
2928
- uses: actions/setup-java@v1
3029
with:
31-
java-version: '12.x'
30+
java-version: "12.x"
3231

3332
#### subosito/flutter-action _____________________________________________
3433
# @see https://github.com/marketplace/actions/flutter-action
3534

3635
- uses: subosito/flutter-action@v1
3736
with:
3837
# flutter-version: '1.20.2'
39-
channel: 'stable' # or: 'beta', 'dev' or 'master'
38+
channel: "stable" # or: 'beta', 'dev' or 'master'
4039
- run: dart --version
4140
- run: flutter --version
4241
- run: flutter pub get
@@ -48,17 +47,17 @@ jobs:
4847
name: flutter-build-on-ubuntu
4948
runs-on: ubuntu-latest
5049
continue-on-error: true
51-
needs: [ flutter-quick-test ]
50+
needs: [flutter-quick-test]
5251
steps:
5352
- uses: actions/checkout@v2
5453
- uses: actions/setup-java@v1
5554
with:
56-
java-version: '12.x'
55+
java-version: "12.x"
5756
- uses: subosito/flutter-action@v1
5857
with:
5958
# flutter-version: '1.20.2'
6059
# channel: 'beta'
61-
channel: 'stable' # or: 'beta', 'dev' or 'master'
60+
channel: "stable" # or: 'beta', 'dev' or 'master'
6261
- run: dart --version
6362
- run: flutter --version
6463
- run: flutter pub get
@@ -86,15 +85,15 @@ jobs:
8685
name: flutter-build-on-macos
8786
runs-on: macos-latest
8887
continue-on-error: true
89-
needs: [ flutter-quick-test ]
88+
needs: [flutter-quick-test]
9089
steps:
9190
- uses: actions/checkout@v2
9291
- uses: actions/setup-java@v1
9392
with:
94-
java-version: '12.x'
93+
java-version: "12.x"
9594
- uses: subosito/flutter-action@v1
9695
with:
97-
channel: 'stable' # or: 'beta', 'dev' or 'master'
96+
channel: "stable" # or: 'beta', 'dev' or 'master'
9897
- run: dart --version
9998
- run: flutter --version
10099
- run: flutter pub get
@@ -113,12 +112,12 @@ jobs:
113112
flutter-build-on-windows:
114113
name: flutter-build-on-windows
115114
runs-on: windows-latest
116-
needs: [ flutter-quick-test ]
115+
needs: [flutter-quick-test]
117116
steps:
118117
- uses: actions/checkout@v2
119118
- uses: actions/setup-java@v1
120119
with:
121-
java-version: '12.x'
120+
java-version: "12.x"
122121
- uses: subosito/flutter-action@v1
123122
with:
124123
# 2021-10-25: channel: beta required for windows
@@ -174,5 +173,3 @@ jobs:
174173
# - avancado https://github.com/anton-yurchenko/git-release
175174
# - "Unreleased" https://github.com/anton-yurchenko/git-release/issues/47
176175
# - sem changelog: https://github.com/svenstaro/upload-release-action
177-
178-

.github/workflows/README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# github-actions-example-flutter workflows
2+
Explicação curta sobre os fluxo de trabalho desta pasta.
3+
4+
Sobre reuso: pessoas colaboradoras do [HXL-CPLP](https://hxl.etica.ai), que
5+
também recebem ajuda em foruns e afins, explicidamente dedicam conteúdo aqui
6+
ao domínio público (`SPDX-License-Identifier: Unlicense OR 0BSD`).
7+
Você é explicitamente livre para reusar partes, editar conteúdo, etc dos YAMLs,
8+
para qualquer fim, mesmo comercial e sem citar fonte. Se eventualmente você
9+
tiver oportunidade, HXL-CPLP agradece antecipadamente quem ajudar com habilidade
10+
técnica projetos de software para fins humanitários (em que tipicamente há
11+
pouca colaboração de comunidade open source.)
12+
13+
`SPDX-License-Identifier: Unlicense OR 0BSD`
14+
15+
## Visão geral
16+
17+
Cada arquivo de fluxo de trabalho **pode ser usado de forma independente**
18+
e, além da sintaxe operacional (e, em parte, nomes em inglês), toda documentação
19+
adicional (que pode ajudar pessoas novas em automação) está em português.
20+
21+
### [`03-flutter-quick-test.yml`](03-flutter-quick-test.yml)
22+
### [`05-flutter-build-devel.yml`](05-flutter-build-devel.yml)
23+
### [`07-flutter-release.yml`](07-flutter-release.yml)

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
- This is a test
55
- Another test
66

7+
## [0.3.0] - 2020-11-02
8+
- .github/workflows/README.md adicionado
9+
- 05-flutter-build-devel.yml renomeado (era 05-flutter-build.yml)
10+
711
## [0.2.0] - 2020-11-02
812
- Exemplum A
913
- Exemplum B

0 commit comments

Comments
 (0)