Fix go vendor #647
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: Build, linters, and unit tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build-linters-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- run: | | |
pip3 install --user --upgrade jinjanator | |
j2 --version | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- name: Build | |
run: time make build | |
- name: Linters | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54.2 | |
args: --timeout 3m --verbose cmd/... pkg/... | |
- name: Check vendors | |
run: | | |
make vendor | |
if [[ -n "$(git status --porcelain)" ]]; then | |
echo "Vendor is out-of-date. Please run 'make vendor' locally and commit the changes" | |
git status --porcelain | |
exit 1 | |
fi | |
- name: Test | |
run: make test | |
- name: Generate YAML manifests | |
run: make manifests | |
- name: Check manifest correctness | |
run: | | |
if [[ -n $(git status --porcelain 2>/dev/null) ]]; then | |
echo "You probably need to run 'make manifests' and commit the changes" | |
exit 1 | |
fi |