2019-12-16 11:19:37 +01:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
schedule:
|
2019-12-21 10:06:51 +01:00
|
|
|
- cron: '7 4 * * 4' # weekly on thursday morning
|
2019-12-16 11:19:37 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-08-21 14:19:51 +02:00
|
|
|
- uses: actions/checkout@v2
|
2019-12-16 11:19:37 +01:00
|
|
|
- name: Set up Python 3.8
|
2020-08-21 14:19:51 +02:00
|
|
|
uses: actions/setup-python@v2
|
2019-12-16 11:19:37 +01:00
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2020-08-08 21:26:49 +02:00
|
|
|
pip install poetry
|
|
|
|
poetry install
|
2019-12-16 11:19:37 +01:00
|
|
|
- name: Linting
|
|
|
|
run: |
|
2020-08-08 21:26:49 +02:00
|
|
|
make lint
|
2020-08-21 14:19:51 +02:00
|
|
|
|
|
|
|
e2e-with-kind:
|
|
|
|
name: e2e with kind
|
|
|
|
needs: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
k8s-version:
|
|
|
|
- v1.16.9
|
|
|
|
- v1.18.8
|
2020-08-31 13:18:14 +02:00
|
|
|
- v1.19.0
|
2020-08-21 14:19:51 +02:00
|
|
|
env:
|
|
|
|
kind-version: v0.8.1
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python 3.8
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.8
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pip install poetry
|
|
|
|
poetry install
|
|
|
|
- name: Set up kind with K8s version ${{ matrix.k8s-version }}
|
|
|
|
uses: engineerd/setup-kind@v0.4.0
|
|
|
|
with:
|
|
|
|
image: kindest/node:${{ matrix.k8s-version }}
|
|
|
|
version: ${{ env.kind-version }}
|
|
|
|
- name: E2E test
|
|
|
|
run: |
|
|
|
|
kubectl cluster-info
|
|
|
|
kubectl proxy &
|
|
|
|
make e2e-with-kind
|