Skip to content

Expose slices of options for easier wrapping #14

Expose slices of options for easier wrapping

Expose slices of options for easier wrapping #14

Workflow file for this run

name: Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.22.x
check-latest: true
- name: Lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.57
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.22.x
check-latest: true
- name: Setup Dependencies
run: make deps && git diff-index --quiet HEAD || { >&2 echo "Stale go.{mod,sum} detected. This can be fixed with 'make deps'."; exit 1; }
- name: Run Test
run: make test
- name: Copy coverage.out file to temp
run: cp coverage.out $RUNNER_TEMP
- name: Update coverage report
uses: ncruces/go-coverage-report@v0
with:
coverage-file: ${{ runner.temp }}/coverage.out
report: true
chart: true
amend: true
reuse-go: true
if: |
github.event_name == 'push'
continue-on-error: true