Skip to content

Commit d9480e3

Browse files
[PERF-318] Run Pipeclean Test on github Actions (#96)
* Pipeclean Test on VM * cleanup code * rename the action name * comments solved * workflow permissions update for PERF-324 --------- Co-authored-by: Vinaya Mayya <vinaya.mayya@ed-fi.org>
1 parent 9fcf489 commit d9480e3

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Licensed to the Ed-Fi Alliance under one or more agreements.
3+
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
4+
# See the LICENSE and NOTICES files in the project root for more information.
5+
6+
name: Run Pipeclean Test
7+
on:
8+
workflow_dispatch:
9+
10+
permissions: read-all
11+
12+
env:
13+
AzureTestVmUsername: ${{ secrets.AZURE_TEST_VM_USER_NAME }}
14+
AzureTestVmPassword: ${{ secrets.AZURE_TEST_VM_PASSWORD }}
15+
16+
jobs:
17+
pipeclean-test:
18+
runs-on: windows-latest
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
23+
24+
- name: Execute Test Runner
25+
if: ${{ env.AzureTestVmUsername != '' && env.AzureTestVmPassword != '' }}
26+
shell: powershell
27+
working-directory: ./eng/
28+
run: |
29+
. $env:GITHUB_WORKSPACE/eng/AzureTestLab.ps1
30+
Invoke-TestRunnerFromTeamCity pipeclean
31+
32+
- name: Upload Package
33+
if: success()
34+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
35+
with:
36+
name: TestResults
37+
path: ${{ github.workspace }}/eng/artifacts/

0 commit comments

Comments
 (0)