Skip to content

fix: add examples to README #13

fix: add examples to README

fix: add examples to README #13

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go:
- '1.20'
- '1.19'
- '1.18'
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -coverprofile=profile.cov ./...
- name: Coveralls GitHub Action
uses: shogo82148/actions-goveralls@v1
with:
flag-name: Go-${{ matrix.go }}
path-to-profile: profile.cov
parallel: true
# notifies that all test jobs are finished.
finish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true