Skip to content

feat/webhooks

feat/webhooks #43

Workflow file for this run

name: codecov
on:
push:
branches:
- "main"
pull_request:
branches:
- 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: Install cURL Package
uses: ConorMacBride/install-package@v1.1.0
with:
apt: curl jq
- name: Run coverage
run: |
export ARTIFACT_HUB_VERSION=$(curl -X 'GET' 'https://artifacthub.io/api/v1/packages/coredns/artifact-hub/artifact-hub' -H 'accept: application/json' | jq -r '.version')
echo $ARTIFACT_HUB_VERSION
go version
go test ./artifacthub -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3