Skip to content

🌱 Bump github/codeql-action from 3.25.10 to 3.25.11 (#318) #126

🌱 Bump github/codeql-action from 3.25.10 to 3.25.11 (#318)

🌱 Bump github/codeql-action from 3.25.10 to 3.25.11 (#318) #126

Workflow file for this run

name: "React to push to main and release branches"
on:
push:
branches:
- 'main'
- 'release-**'
env:
GO_VERSION: '1.22'
jobs:
lint:
name: lint-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-go@v5
with:
stable: 'true'
go-version: ${{ env.GO_VERSION }}
- name: Build hack tools for linting
run: cd hack/tools && make golangci-lint
- name: Install npm
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install markdown-lint tool
run: npm install -g markdownlint-cli
- name: Perform golang code linting
run: make lint-go
- name: Perform markdown linting
run: make lint-markdown
- name: Perform shell scripts linting with shellcheck
run: make lint-shell
unit-test:
name: unit-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-go@v5
with:
stable: 'true'
go-version: ${{ env.GO_VERSION }}
- name: Build hack tools for unit testing
run: cd hack/tools && make controller-gen etcd ginkgo kustomize
- name: Perform unit tests and output coverage
run: make cover
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: cover.out
verbose: true