1
1
name : porter/porter-integration
2
- # this will only run when this is on main branch apparently so use pr for now (temporary)
3
- # on:
4
- # issue_comment:
5
- # types: [created, edited]
6
2
on :
7
3
pull_request :
8
4
branches :
@@ -14,24 +10,114 @@ env:
14
10
GOVERSION : 1.20.7
15
11
16
12
jobs :
17
- Integration_test :
18
- name : Integration Test
13
+ archive_integration_test :
14
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
15
+ with :
16
+ test_name : archive_test
17
+ build_integration_test :
18
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
19
+ with :
20
+ test_name : build_test
21
+ cli_integration_test :
22
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
23
+ with :
24
+ test_name : cli_test
25
+ connection_nix_integration_test :
26
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
27
+ with :
28
+ test_name : connection_nix_test
29
+ copy_integration_test :
30
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
31
+ with :
32
+ test_name : copy_test
33
+ dependenciesv1_integration_test :
34
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
35
+ with :
36
+ test_name : dependenciesv1_test
37
+ dependenciesv2_integration_test :
38
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
39
+ with :
40
+ test_name : dependenciesv2_test
41
+ driver_integration_test :
42
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
43
+ with :
44
+ test_name : driver_test
45
+ install_integration_test :
46
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
47
+ with :
48
+ test_name : install_test
49
+ invoke_integration_test :
50
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
51
+ with :
52
+ test_name : invoke_test
53
+ lint_integration_test :
54
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
55
+ with :
56
+ test_name : lint_test
57
+ migration_integration_test :
58
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
59
+ with :
60
+ test_name : migration_test
61
+ outputs_integration_test :
62
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
63
+ with :
64
+ test_name : outputs_test
65
+ publish_integration_test :
66
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
67
+ with :
68
+ test_name : publish_test
69
+ pull_integration_test :
70
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
71
+ with :
72
+ test_name : pull_test
73
+ registry_integration_test :
74
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
75
+ with :
76
+ test_name : registry_integration_test
77
+ schema_integration_test :
78
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
79
+ with :
80
+ test_name : schema_test
81
+ sensitive_data_integration_test :
82
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
83
+ with :
84
+ test_name : sensitive_data_test
85
+ suppress_output_integration_test :
86
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
87
+ with :
88
+ test_name : suppress_output_test
89
+ telemetry_test :
90
+ uses : getporter/porter/.github/workflows/integ-reuseable-workflow.yml@main
91
+ with :
92
+ test_name : telemetry_test
93
+ # Reusable workflows only supports 20 jobs
94
+ uninstall_test_integ :
19
95
runs-on : ubuntu-latest
20
96
steps :
21
97
- name : checkout
22
98
uses : actions/checkout@v4.1.0
23
99
- uses : actions/setup-go@v4
24
100
with :
25
101
go-version : " ${{ env.GOVERSION }}"
102
+ cache : true
103
+ - name : Set up Docker Buildx
104
+ uses : docker/setup-buildx-action@v3
105
+ - name : Cache Docker layers
106
+ uses : actions/cache@v3
107
+ with :
108
+ path : /tmp/.buildx-cache
109
+ key : ${{ runner.os }}-buildx-${{ github.sha }}
26
110
- name : Docker Login
27
111
uses : docker/login-action@v3.0.0
28
112
with :
29
113
registry : ghcr.io
30
114
username : ${{ github.actor }}
31
115
password : ${{ secrets.GITHUB_TOKEN }}
32
- - name : Native Build
33
- run : go run mage.go Build
116
+ - name : Configure Agent
117
+ run : go run mage.go build
34
118
shell : bash
35
119
- name : Integration Test
36
- run : go run mage.go -v TestIntegration
120
+ env :
121
+ PORTER_INTEG_FILE : uninstall_test.go
122
+ run : go run mage.go -v TestIntegration
37
123
shell : bash
0 commit comments