mirror of
https://github.com/cmur2/kube-stale-resources.git
synced 2024-11-14 08:56:16 +01:00
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
schedule:
|
|
- cron: '7 4 * * 4' # weekly on thursday morning
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
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: Linting
|
|
run: |
|
|
make lint
|
|
|
|
e2e-with-kind:
|
|
name: e2e with kind
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
k8s-version:
|
|
- v1.16.9
|
|
- v1.18.8
|
|
- v1.19.0
|
|
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
|