Skip to content

Merge pull request #85 from Kuadrant/commit-hash-version #226

Merge pull request #85 from Kuadrant/commit-hash-version

Merge pull request #85 from Kuadrant/commit-hash-version #226

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