mirror of
https://github.com/Azure/setup-helm.git
synced 2025-07-21 13:11:12 +00:00
Compare commits
3 Commits
users/shig
...
update-rea
Author | SHA1 | Date | |
---|---|---|---|
b9405ec6dc | |||
f278626f77 | |||
18bc768116 |
33
.github/workflows/TriggerIntegrationTests.sh
vendored
Normal file
33
.github/workflows/TriggerIntegrationTests.sh
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
token=$1
|
||||||
|
commit=$2
|
||||||
|
repository=$3
|
||||||
|
prNumber=$4
|
||||||
|
frombranch=$5
|
||||||
|
tobranch=$6
|
||||||
|
patUser=$7
|
||||||
|
|
||||||
|
getPayLoad() {
|
||||||
|
cat <<EOF
|
||||||
|
{
|
||||||
|
"event_type": "SetupHelmActionPR",
|
||||||
|
"client_payload":
|
||||||
|
{
|
||||||
|
"action": "SetupHelm",
|
||||||
|
"commit": "$commit",
|
||||||
|
"repository": "$repository",
|
||||||
|
"prNumber": "$prNumber",
|
||||||
|
"tobranch": "$tobranch",
|
||||||
|
"frombranch": "$frombranch"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
response=$(curl -u $patUser:$token -X POST https://api.github.com/repos/Azure/azure-actions-integration-tests/dispatches --data "$(getPayLoad)")
|
||||||
|
|
||||||
|
if [ "$response" == "" ]; then
|
||||||
|
echo "Integration tests triggered successfully"
|
||||||
|
else
|
||||||
|
echo "Triggering integration tests failed with: '$response'"
|
||||||
|
exit 1
|
||||||
|
fi
|
19
.github/workflows/integration-tests.yml
vendored
Normal file
19
.github/workflows/integration-tests.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: "Trigger Integration tests"
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- 'releases/*'
|
||||||
|
jobs:
|
||||||
|
trigger-integration-tests:
|
||||||
|
name: Trigger Integration tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
path: IntegrationTests
|
||||||
|
|
||||||
|
- name: Trigger Test run
|
||||||
|
run: |
|
||||||
|
bash ./IntegrationTests/.github/workflows/TriggerIntegrationTests.sh ${{ secrets.L2_REPO_TOKEN }} ${{ github.event.pull_request.head.sha }} ${{ github.repository }} ${{ github.event.pull_request.number }} ${{ github.event.pull_request.head.ref }} ${{ github.event.pull_request.base.ref }} ${{ secrets.L2_REPO_USER }}
|
@ -1,5 +1,6 @@
|
|||||||
# Setup Helm
|
# Setup Helm
|
||||||
#### Install a specific version of helm binary on the runner.
|
Install a specific version of helm binary on the runner.
|
||||||
|
## Example
|
||||||
|
|
||||||
Acceptable values are latest or any semantic version string like v2.16.7 Use this action in workflow to define which version of helm will be used.
|
Acceptable values are latest or any semantic version string like v2.16.7 Use this action in workflow to define which version of helm will be used.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user