-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (66 loc) · 1.91 KB
/
Copy pathe2e.yml
File metadata and controls
74 lines (66 loc) · 1.91 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
72
73
74
name: e2e
on:
push:
branches:
- main
- "release-**"
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
branches:
- main
- "release-**"
permissions: {}
jobs:
changes:
permissions:
contents: read
pull-requests: read
outputs:
should-run: ${{ steps.changes.outputs.e2e == 'true' }}
if: github.event.pull_request.draft == false || github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3
id: changes
with:
filters: |
e2e:
- 'e2e/**'
- 'internal/**'
- 'lambda/**'
- 'cmd/**'
- 'docker-compose*.yaml'
- 'docker-compose*.yml'
- '.github/workflows/e2e.yml'
- 'go.*'
e2e:
needs: [changes]
if: needs.changes.outputs.should-run == 'true'
name: e2e
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
with:
go-version-file: go.mod
- name: Setup Terraform
uses: hashicorp/setup-terraform@5e8dbf3c6d9deaf4193ca7a8fb23f2ac83bb6c85 # v4
with:
terraform_version: "1.5.0"
- name: Run e2e
run: ./e2e/scripts/run-terramate.sh
env:
AWS_ACCESS_KEY_ID: minioadmin
AWS_SECRET_ACCESS_KEY: minioadmin
AWS_REGION: us-east-1
AWS_ENDPOINT_URL_S3: http://localhost:9000
skip:
needs: [changes]
if: needs.changes.outputs.should-run == 'false'
permissions: {}
runs-on: ubuntu-latest
steps:
- run: echo "No e2e-relevant changes, skipping e2e"