Skip to content

change ads->kernel-native and workload->duel-engine in code #2251

change ads->kernel-native and workload->duel-engine in code

change ads->kernel-native and workload->duel-engine in code #2251

Workflow file for this run

name: Kmesh CI Workflow
on:
pull_request:
paths-ignore:
- '**.md'
- '**.svg'
- '**.png'
merge_group: # enable merge queue
workflow_call:
secrets:
CODECOV_TOKEN:
required: true
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: [ '1.23' ]
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/[email protected]
with:
go-version: ${{ matrix.go-version }}
- name: Run gen-check
run: |
make gen-check
- name: Run Copyright-check
run : |
make copyright-check
- name: Build Kmesh
shell: bash
run: |
sudo env "PATH=$PATH" bash ./build.sh
- name: Setup Enviroments
run: |
echo "PKG_CONFIG_PATH=$GITHUB_WORKSPACE/mk" >> $GITHUB_ENV
# Since requiring code generated by the Proto compilation, execute go lint after building.
- name: golangci-lint
uses: golangci/[email protected]
with:
args: "--config=common/config/.golangci.yaml --out-format colored-line-number"
skip-pkg-cache: true
- name: Go Test
run: |
sudo env LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:$GITHUB_WORKSPACE/api/v2-c:$GITHUB_WORKSPACE/bpf/deserialization_to_bpf_map PKG_CONFIG_PATH=$GITHUB_WORKSPACE/mk go test -race -v -vet=off -coverprofile=coverage.out ./pkg/...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
# Even though token upload token is not required for public repos,
# but adding a token might increase successful uploads as per:
# https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out
flags: unittests
fail_ci_if_error: false
verbose: true