fix: dashboard panic while replacing query namespace with target name… #3011
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: Unit Test And Code Coverage | |
# this workflow would work on all the prs | |
on: | |
pull_request: | |
paths: | |
- Makefile | |
- go.* | |
- "**.go" | |
push: | |
paths: | |
- Makefile | |
- go.* | |
- "**.go" | |
permissions: read-all | |
jobs: | |
unitTestAndCodeCoverage: | |
name: "Unit Test And Code Coverage" | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Build Chaos Mesh Build Env | |
if: ${{ github.event.pull_request }} | |
env: | |
IMAGE_BUILD_ENV_BUILD: ${{ contains(github.event.pull_request.labels.*.name, 'rebuild-build-env-image') }} | |
run: | | |
if [ "${IMAGE_BUILD_ENV_BUILD}" = "true" ] ; then | |
export IMAGE_BUILD_ENV_BUILD=1; | |
else | |
export IMAGE_BUILD_ENV_BUILD=0; | |
fi | |
make image-build-env | |
- name: Build Chaos Mesh Dev Env | |
if: ${{ github.event.pull_request }} | |
env: | |
IMAGE_DEV_ENV_BUILD: ${{ contains(github.event.pull_request.labels.*.name, 'rebuild-dev-env-image') }} | |
run: | | |
if [ "${IMAGE_DEV_ENV_BUILD}" = "true" ] ; then | |
export IMAGE_DEV_ENV_BUILD=1; | |
else | |
export IMAGE_DEV_ENV_BUILD=0; | |
fi | |
make image-dev-env | |
- name: Unit Test | |
run: | | |
make test | |
- name: Upload Code Coverage | |
uses: codecov/codecov-action@v2 | |
with: | |
files: ./cover.out | |
verbose: true | |
fail_ci_if_error: true |