added code to display version as commit hash #215
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: 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 |