test #158
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: CICD-PUSH | |
on: | |
push: | |
branches: | |
- '*' | |
- '*/*' | |
tags-ignore: | |
- '*' | |
jobs: | |
make-test: | |
runs-on: [self-hosted, eks-fargate-runner ] | |
steps: | |
- uses: JashBook/checkout@main | |
- name: make manifests check | |
run: | | |
SHA=${{ github.sha }} | |
make manifests | |
FILE_CHANGES=`git diff --name-only $SHA` | |
if [[ ! -z "$FILE_CHANGES" ]]; then | |
echo $FILE_CHANGES | |
echo "make manifests causes inconsistent files" | |
exit 1 | |
fi | |
- name: make mod-vendor and lint | |
run: | | |
mkdir -p ./bin | |
cp -r /go/bin/controller-gen ./bin/controller-gen | |
cp -r /go/bin/setup-envtest ./bin/setup-envtest | |
make mod-vendor | |
make lint | |
- name: make test | |
run: | | |
make test | |
- name: upload coverage report | |
uses: codecov/codecov-action@v3 | |
continue-on-error: true | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./cover.out | |
flags: unittests | |
name: codecov-report | |
verbose: true |