Skip to content

🐛 Bumps operator-registry to latest #465

🐛 Bumps operator-registry to latest

🐛 Bumps operator-registry to latest #465

Workflow file for this run

name: Unit tests
# Trigger the workflow on pull requests and direct pushes to any branch
on:
push:
pull_request:
jobs:
test:
name: Unit tests
runs-on: ubuntu-latest
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Clone the code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '~1.19'
- name: Perform the test
run: make test
coverage:
name: Code coverage
needs:
- test
runs-on: ubuntu-latest
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Clone the code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.19'
- name: Generate the coverage output
run: make test-coverage
- name: Send the coverage output
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage-all.out