kube-stale-resources/.github/workflows/ci.yml

56 lines
1.2 KiB
YAML
Raw Normal View History

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: |
pip install poetry
poetry install
2019-12-16 11:19:37 +01:00
- name: Linting
run: |
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
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