Skip to content

feat(generic): extra data and custom headers #730

feat(generic): extra data and custom headers

feat(generic): extra data and custom headers #730

Workflow file for this run

name: Main Workflow
on:
pull_request: {}
workflow_dispatch: {}
push:
branches:
- '*'
tags-ignore:
- 'v*'
paths-ignore:
- 'docs/*'
permissions:
contents: read
jobs:
go-versions:
name: Lookup go versions
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.versions.outputs.matrix }}
steps:
- uses: actions/checkout@v3
- uses: arnested/go-version-action@v1
id: versions
build:
name: Build Shoutrrr
runs-on: ubuntu-latest
needs: go-versions
strategy:
matrix:
version: ${{ fromJSON(needs.go-versions.outputs.matrix) }}
steps:
- name: Set up Go ${{ matrix.version }}
uses: actions/setup-go@v4
id: go
with:
go-version: ${{ matrix.version }}
check-latest: true
- name: Check out code
uses: actions/checkout@v3
- name: Build
run: CGO_ENABLED=0 go build -v .
- name: Test
run: CGO_ENABLED=0 go test -v -coverprofile=coverage.out -covermode=atomic ./...
- name: Publish coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}