Skip to content

check for schema version and allow unknown fields to keep backwards compatibility with old designs with minor undocumented schema changes #1815

check for schema version and allow unknown fields to keep backwards compatibility with old designs with minor undocumented schema changes

check for schema version and allow unknown fields to keep backwards compatibility with old designs with minor undocumented schema changes #1815

Workflow file for this run

name: Lint and unit tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
golangci:
name: lint
needs: [tidy]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-go@master
with:
go-version: '1.23'
cache: true
cache-dependency-path: go.sum
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
skip-cache: true
- name: Run golangci-lint
run: make check
tidy:
name: tidy
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-go@master
with:
go-version: '1.23'
cache: true
cache-dependency-path: go.sum
- name: go mod tidy
run: make tidy
codecov:
name: codecov
needs: [ tidy ]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: true
cache-dependency-path: go.sum
- name: test
run: make test
- name: Upload covergae to Codecov
if: github.repository == 'meshery/meshkit'
uses: codecov/codecov-action@v3
with:
files: ./coverage.out
flags: unittests