|
99 | 99 | - build_provider |
100 | 100 | - test |
101 | 101 | - license_check |
102 | | - - upstream_lint |
103 | 102 | uses: ./.github/workflows/publish.yml |
104 | 103 | secrets: inherit |
105 | 104 | with: |
@@ -127,106 +126,14 @@ jobs: |
127 | 126 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
128 | 127 |
|
129 | 128 | test: |
130 | | - name: test |
| 129 | + uses: ./.github/workflows/test.yml |
131 | 130 | needs: |
132 | 131 | - prerequisites |
133 | 132 | - build_provider |
134 | 133 | - build_sdk |
135 | | - permissions: |
136 | | - contents: read |
137 | | - id-token: write |
138 | | - runs-on: ubuntu-latest |
139 | | - env: |
140 | | - PROVIDER_VERSION: ${{ needs.prerequisites.outputs.version }} |
141 | | - steps: |
142 | | - # Run as first step so we don't delete things that have just been installed |
143 | | - - name: Free Disk Space (Ubuntu) |
144 | | - uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 |
145 | | - with: |
146 | | - tool-cache: false |
147 | | - swap-storage: false |
148 | | - dotnet: false |
149 | | - - name: Checkout Repo |
150 | | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
151 | | - with: |
152 | | - submodules: true |
153 | | - persist-credentials: false |
154 | | - - name: Setup tools |
155 | | - uses: ./.github/actions/setup-tools |
156 | | - with: |
157 | | - tools: pulumictl, pulumicli, ${{ matrix.language }} |
158 | | - - name: Prepare local workspace |
159 | | - run: make prepare_local_workspace |
160 | | - - name: Download bin |
161 | | - uses: ./.github/actions/download-bin |
162 | | - - name: Download SDK |
163 | | - uses: ./.github/actions/download-sdk |
164 | | - with: |
165 | | - language: ${{ matrix.language }} |
166 | | - - name: Restore makefile progress |
167 | | - run: make --touch provider schema build_${{ matrix.language }} |
168 | | - - name: Update path |
169 | | - run: echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH" |
170 | | - - name: Install Python deps |
171 | | - if: matrix.language == 'python' |
172 | | - run: |- |
173 | | - pip3 install virtualenv==20.0.23 |
174 | | - pip3 install pipenv |
175 | | - - name: Install dependencies |
176 | | - run: make install_${{ matrix.language}}_sdk |
177 | | - - name: Install gotestfmt |
178 | | - uses: GoTestTools/gotestfmt-action@v2 |
179 | | - with: |
180 | | - token: ${{ secrets.GITHUB_TOKEN }} |
181 | | - version: v2.5.0 |
182 | | - - name: Configure AWS Credentials |
183 | | - uses: aws-actions/configure-aws-credentials@v4 |
184 | | - with: |
185 | | - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} |
186 | | - aws-region: ${{ env.AWS_REGION }} |
187 | | - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
188 | | - role-duration-seconds: 7200 |
189 | | - role-session-name: aws@githubActions |
190 | | - role-to-assume: ${{ secrets.AWS_CI_ROLE_ARN }} |
191 | | - - name: Make upstream |
192 | | - run: make upstream |
193 | | - - name: Run tests |
194 | | - run: cd examples && go test -count=1 -cover -timeout 2h -tags=${{ matrix.language }} -parallel 4 |
195 | | - strategy: |
196 | | - fail-fast: false |
197 | | - matrix: |
198 | | - language: |
199 | | - - nodejs |
200 | | - - python |
201 | | - - dotnet |
202 | | - - go |
203 | | - - java |
204 | | - upstream_lint: |
205 | | - name: Run upstream provider-lint |
206 | | - runs-on: ubuntu-latest |
207 | | - steps: |
208 | | - - name: Free Disk Space (Ubuntu) |
209 | | - uses: jlumbroso/free-disk-space@main |
210 | | - with: |
211 | | - swap-storage: false |
212 | | - tool-cache: false |
213 | | - - name: Checkout Repo |
214 | | - uses: actions/checkout@v4 |
215 | | - with: |
216 | | - ref: ${{ env.PR_COMMIT_SHA }} |
217 | | - submodules: true |
218 | | - - name: Install Go |
219 | | - uses: actions/setup-go@v5 |
220 | | - with: |
221 | | - cache: false |
222 | | - go-version: 1.23.x |
223 | | - - name: Prepare local workspace |
224 | | - run: make prepare_local_workspace |
225 | | - - name: upstream lint |
226 | | - run: | |
227 | | - cd upstream |
228 | | - make provider-lint |
229 | | - timeout-minutes: 60 |
| 134 | + secrets: inherit |
| 135 | + with: |
| 136 | + version: ${{ needs.prerequisites.outputs.version }} |
230 | 137 |
|
231 | 138 | name: master |
232 | 139 | on: |
|
0 commit comments