Skip to content

added code to display version as commit hash #215

added code to display version as commit hash

added code to display version as commit hash #215

Workflow file for this run

---
name: Testing
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ '*' ]
jobs:
build:
name: Build executable
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
id: go
- name: Check out code
uses: actions/checkout@v2
- name: make install
run: |
make install
tests:
name: Run tests
runs-on: ubuntu-latest
env:
KIND_CLUSTER_NAME: kuadrantctl-local
steps:
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
id: go
- name: Check out code
uses: actions/checkout@v3
- name: Run tests
run: |
make test
- name: Upload test coverage reports to CodeCov
# more at https://github.com/codecov/codecov-action
# Only run if the feature branch is in your repo (not in a fork)
# as Tokenless uploading is rate limited for public repos
if: github.event.pull_request.head.repo.full_name == github.repository
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
verbose: true