Skip to content

readtext simplify and some tool schema mods #130

readtext simplify and some tool schema mods

readtext simplify and some tool schema mods #130

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
#
# Cancel outdated runs for the same branch / PR
#
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
go:
name: Go - test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
coverage: true
- os: windows-2022
coverage: false
- os: macos-15
coverage: false
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set-up Go
uses: actions/setup-go@v6
with:
go-version-file: "go.mod"
- name: test
run: |
if [[ "${{ matrix.coverage }}" == "true" ]]; then
go test -count=1 -covermode=atomic -coverpkg=./... -coverprofile=coverage.out -tags=integration ./...
go tool cover -func=coverage.out
else
go test -tags=integration ./...
fi
- name: check test coverage
if: matrix.coverage == true
uses: vladopajic/go-test-coverage@v2
with:
config: ./.testcoverage.yml