Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Merge pull request #182 from weaveworks/add-deprecation-notice #59

Merge pull request #182 from weaveworks/add-deprecation-notice

Merge pull request #182 from weaveworks/add-deprecation-notice #59

Workflow file for this run

name: Kubediff End to End Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-e2e:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['2.7', '3.6', '3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Install K8S ${{ matrix.k8s-version }}
uses: helm/[email protected]
with:
version: v0.11.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Deploy sample application with kubectl
run: |
kubectl apply -f tests/e2e/success
- name: Run Kubediff with initial configuration
run: |
./kubediff tests/e2e/success
- name: Change sample-app replicas to 3
run: |
kubectl scale deployment kubediff-app --replicas=3
- name: Run Kubediff after change
id: kubediff-nojson
run: |
./kubediff -e tests/e2e/success | diff tests/e2e/results/nojson.txt -
- name: Run Kubediff with json flag
id: kubediff-json
run: |
./kubediff -e -j tests/e2e/success | diff tests/e2e/results/json.txt -
test-e2e-py3:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Install K8S ${{ matrix.k8s-version }}
uses: helm/[email protected]
with:
version: v0.11.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Kubediff with missing fields
id: kubediff-missing
run: |
./kubediff -e tests/e2e/error/apimissing.yaml | diff tests/e2e/results/apimissing.txt -
./kubediff -e tests/e2e/error/kindmissing.yaml | diff tests/e2e/results/kindmissing.txt -
test-e2e-py2:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['2.7']
steps:
- uses: actions/checkout@v2
- name: Install K8S ${{ matrix.k8s-version }}
uses: helm/[email protected]
with:
version: v0.11.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Kubediff with missing fields
id: kubediff-missing
run: |
./kubediff -e tests/e2e/error/apimissing.yaml | diff tests/e2e/results/apimissing27.txt -
./kubediff -e tests/e2e/error/kindmissing.yaml | diff tests/e2e/results/kindmissing27.txt -