Skip to content

add model name in the kubernetesResource struct for return the model name with the kind and count in summary api #1113

add model name in the kubernetesResource struct for return the model name with the kind and count in summary api

add model name in the kubernetesResource struct for return the model name with the kind and count in summary api #1113

Workflow file for this run

name: Meshsync CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
golangci-lint:
strategy:
matrix:
platform: [ubuntu-22.04]
go-version: [1.23.x]
runs-on: ${{ matrix.platform }}
steps:
- name: Check out code
uses: actions/checkout@master
- name: Setup go
uses: actions/setup-go@main
with:
go-version: ${{ matrix.go-version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout=5m
codecov:
needs: golangci-lint
name: Code coverage
if: github.repository == 'meshery/meshsync'
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.23.x'
- name: Run unit tests
run: go test --short ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
if: github.repository == 'meshery/meshsync'
uses: codecov/codecov-action@v3
with:
file: ./coverage.txt
flags: unittests
build:
needs: [golangci-lint, codecov]
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.23.x'
- name: Build
run: make build