Skip to content

feat: get ready for OSS, updating licenses and CI #20

feat: get ready for OSS, updating licenses and CI

feat: get ready for OSS, updating licenses and CI #20

Workflow file for this run

#
# LICENSE START
#
# Copyright (c) NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# LICENSE END
#
name: Operator unit and functional tests
on:
pull_request:
paths:
- operator/**
- .github/workflows/operator-ci.yaml
env:
REGISTRY: ghcr.io
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go 1.23
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Unit tests
run: |
cd operator
make unit-tests
k8s-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0
- name: Setup Go 1.23
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Kubernetes KinD Cluster
id: kind
uses: helm/kind-action@v1
with:
version: v0.26.0
install_only: true
- name: end-to-end-tests
run: |
cd operator
GITHUB_TOKEN=${{ secrets.github_token }} make create-kind-cluster
make e2e-tests