-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Josh Dolitsky <[email protected]>
- Loading branch information
Showing
11 changed files
with
243 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: run | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
- gh-actions | ||
|
||
jobs: | ||
run: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v1 | ||
|
||
- name: Run acceptance tests | ||
run: make github-actions-ci | ||
|
||
- uses: actions/upload-artifact@master | ||
name: Upload test report | ||
with: | ||
name: helm-acceptance-testing-report-${{ github.sha }} | ||
path: acceptance-testing-reports/${{ github.sha }}/ | ||
if: always() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.acceptance/ | ||
.idea/ | ||
|
||
acceptance-testing-reports/ | ||
bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
#!/bin/bash -ex | ||
# | ||
# Copyright The Helm Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
export KUBECTL_VERSION="v1.16.1" | ||
export HELM_VERSION="v3.0.0-beta.4" | ||
export KIND_VERSION="v0.5.1" | ||
|
||
rm -rf bin/ | ||
mkdir -p bin/ | ||
export PATH="${PWD}/bin:${HOME}/.local/bin:${PATH}" | ||
export GITHUB_SHA="${GITHUB_SHA:-latest}" | ||
|
||
# These tools appear to be in the GitHub "ubuntu-latest" environment, but not in | ||
# the ubuntu:latest image from Docker Hub | ||
if ! [[ -x "$(command -v curl)" || -x "$(command -v pip3)" || -x "$(command -v docker)" ]]; then | ||
apt-get update | ||
apt-get install -y apt-transport-https ca-certificates gnupg-agent software-properties-common curl python3-pip | ||
|
||
# Docker install | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | ||
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
apt-get update | ||
apt-get install -y docker-ce | ||
fi | ||
if ! [[ -x "$(command -v pip)" ]]; then | ||
ln -sf $(which pip3) bin/pip | ||
fi | ||
|
||
# Install kubectl | ||
which kubectl || true | ||
curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl | ||
chmod +x kubectl | ||
mv kubectl bin/kubectl | ||
kubectl version --client | ||
which kubectl | ||
|
||
# Install helm | ||
which helm || true | ||
curl -L https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz | tar xz -C /tmp | ||
mv /tmp/linux-amd64/helm bin/helm | ||
rm -rf /tmp/linux-amd64 | ||
helm version | ||
which helm | ||
|
||
# Install kind | ||
which helm || true | ||
curl -LO https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64 | ||
chmod +x kind-linux-amd64 | ||
mv kind-linux-amd64 bin/kind | ||
which kind | ||
|
||
# Install virtualenv | ||
which virtualenv || true | ||
pip3 install --user virtualenv | ||
virtualenv --version | ||
which virtualenv | ||
|
||
export ROBOT_OUTPUT_DIR="${PWD}/acceptance-testing-reports/${GITHUB_SHA}" | ||
rm -rf ${ROBOT_OUTPUT_DIR} | ||
mkdir -p ${ROBOT_OUTPUT_DIR} | ||
trap "rm -rf ${ROBOT_OUTPUT_DIR}/.venv/" EXIT | ||
|
||
# Run | ||
make acceptance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters