Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: e2e tests #119

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 51 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,47 +24,58 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- name: Check licenses
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make license-check

- name: Run verification
run: make check
# - name: Check licenses
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: make license-check
#
# - name: Run verification
# run: make check

- name: Build Docker image
run: make docker

lint_chart:
name: Lint Helm Chart
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: "0"
submodules: true

- name: Replace version
id: replace_version
run: find . -type f -name "values.yaml" -o -name "Chart.yaml" |
xargs sed -i -e s/latest/v1.0.0-${{ github.sha }}/g

- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0

- uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.1.0

- name: Add Bitnami Repository
run: helm repo add bitnami https://charts.bitnami.com/bitnami

- name: Run chart-testing (lint)
run: ct lint --check-version-increment=false --validate-maintainers=false
- name: Edit values.yaml
id: edit_values
run: |
tag=${{ github.sha }}
sed -i 's/latest/'"$tag"'/g' charts/apiclarity/values.yaml
sed -i 's/Always/IfNotPresent/g' charts/apiclarity/values.yaml
cat charts/apiclarity/values.yaml

- name: Run e2e tests
run: make e2e

# lint_chart:
# name: Lint Helm Chart
# runs-on: ubuntu-latest
# steps:
#
# - name: Checkout code
# uses: actions/checkout@v2
# with:
# fetch-depth: "0"
# submodules: true
#
# - name: Replace version
# id: replace_version
# run: find . -type f -name "values.yaml" -o -name "Chart.yaml" |
# xargs sed -i -e s/latest/v1.0.0-${{ github.sha }}/g
#
# - name: Set up Helm
# uses: azure/setup-helm@v1
# with:
# version: v3.4.0
#
# - uses: actions/setup-python@v2
# with:
# python-version: 3.7
#
# - name: Set up chart-testing
# uses: helm/chart-testing-action@v2.1.0
#
# - name: Add Bitnami Repository
# run: helm repo add bitnami https://charts.bitnami.com/bitnami
#
# - name: Run chart-testing (lint)
# run: ct lint --check-version-increment=false --validate-maintainers=false
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,9 @@ license-cache: bin/licensei ## Generate license cache
bin/licensei cache

.PHONY: check
check: lint test ## Run tests and linters
check: lint test ## Run tests and linters

.PHONY: e2e
e2e:
@echo "Running e2e tests ..."
cd e2e && export DOCKER_TAG=${DOCKER_TAG} && go test .
111 changes: 111 additions & 0 deletions api/client/client/api_clarity_a_p_is_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading