Skip to content

feat: return word positions #317

feat: return word positions

feat: return word positions #317

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -a ./...
- name: Build
run: go build -v ./...
- name: Get test dependencies
run: |
go get -t ./...
- name: Test
run: make test/unit
- name: Run vet & lint
run: make test/lint
- name: Go report
run: curl -X POST -F "repo=github.com/${{github.repository}}" https://goreportcard.com/checks
- name: Calc coverage
run: |
go test -v -covermode=count -coverprofile=coverage.out ./...
- name: Convert coverage.out to coverage.lcov
uses: jandelgado/gcov2lcov-action@v1.0.6
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov