Add more approvers #1954
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Kmesh CI Workflow | |
on: | |
pull_request: | |
merge_group: # enable merge queue | |
workflow_call: | |
secrets: | |
CODECOV_TOKEN: | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
go-version: [ '1.22' ] | |
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 ./hack/copyright-check.sh | |
- 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 |