-
Notifications
You must be signed in to change notification settings - Fork 249
80 lines (69 loc) · 2.43 KB
/
e2e_linux.yaml
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
72
73
74
75
76
77
78
79
80
name: E2E (Linux)
on:
workflow_call:
inputs:
working-directory:
description: The working directory relative to the repo root
required: true
type: string
package-name:
description: The name of the package being tested
required: true
type: string
needs-aws-config:
description: Whether the E2E workflow needs configuration pulled from AWS
required: true
type: boolean
jobs:
e2e-test-linux:
runs-on: ubuntu-latest
strategy:
# Allows other matrix items to run if one fails
fail-fast: false
matrix:
channel:
- beta
- stable
# Skips e2e tests against beta on PRs
exclude:
- channel: ${{ (github.event_name == 'pull_request' && 'beta') || 'NONE' }}
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # 3.5.3
with:
persist-credentials: false
submodules: true
- name: Install dependencies
uses: ./.github/composite_actions/install_dependencies
with:
channel: ${{ matrix.channel }}
- name: Pub Upgrade
run: aft exec --include=${{ inputs.package-name }} -- flutter pub upgrade
- name: Fetch Amplify backend configurations
if: inputs.needs-aws-config
uses: ./.github/composite_actions/fetch_backends
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}
scope: ${{ inputs.package-name }}
secret-identifier: ${{ secrets.AWS_SECRET_IDENTIFIER }}
- name: Run integration tests
timeout-minutes: 60
run: |
flutter config --enable-linux-desktop
aft exec --include=${{ inputs.package-name }} -- "<AFT_ROOT>/build-support/integ_test.sh" -d linux
- name: Log success/failure
if: always()
uses: ./.github/composite_actions/log_cw_metric_wrapper
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ secrets.AWS_REGION }}
job-status: ${{ job.status }}
github-token: ${{ secrets.GITHUB_TOKEN }}
test-type: e2e
working-directory: ${{ inputs.working-directory }}
framework: flutter
platform: linux