Skip to content

Merge branch 'main' into feature/kubernetes-deletion-event #2715

Merge branch 'main' into feature/kubernetes-deletion-event

Merge branch 'main' into feature/kubernetes-deletion-event #2715

Workflow file for this run

name: Test
on: push
jobs:
unit:
name: Unit tests
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: '1.20'
- name: Checkout
uses: actions/checkout@v2
- name: Restore cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Run tests
run: |
make run/unit-tests
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
integration:
name: Integration tests
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: '1.20'
- name: Checkout
uses: actions/checkout@v2
- name: Restore cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Run tests
run: |
make run/integration-tests
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
runtime-integration:
name: Runtime Integration tests
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
k3s-version: [v1.19.11, v1.20.7, v1.21.1]
env:
K3S_VERSION: ${{ matrix.k3s-version }}
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: '1.20'
- name: Checkout
uses: actions/checkout@v2
- name: Restore cache
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Run tests
run: |
make run/runtime-integration-tests