Skip to content

Commit

Permalink
chore: add test action
Browse files Browse the repository at this point in the history
  • Loading branch information
bowman2001 committed Jan 30, 2024
1 parent 3fded1c commit 9b56e3f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: [push, pull_request]
name: test
jobs:
test:
strategy:
fail-fast: false
matrix:
go-version: [1.19.x, 1.20.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Run lints
uses: golangci/golangci-lint-action@v3
with:
version: latest
if: "matrix.platform == 'ubuntu-latest'" # gofmt linter fails on Windows for CRLF problems
- name: Run tests
run: go test -v ./... -covermode=count -coverprofile=coverage.out -coverpkg=./...
- name: Send coverage
if: "matrix.platform == 'ubuntu-latest'"
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GO111MODULE=off go get github.com/mattn/goveralls
$(go env GOPATH)/bin/goveralls -coverprofile=coverage.out -service=github
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![https://pkg.go.dev/github.com/bowman2001/goldmark-supersubscript](https://pkg.go.dev/badge/github.com/bowman2001/goldmark-supersubscript.svg)](https://pkg.go.dev/github.com/bowman2001/goldmark-supersubscript)
[![https://coveralls.io/github/bowman2001/goldmark-supersubscript](https://coveralls.io/repos/github/bowman2001/goldmark-supersubscript/badge.svg?branch=master)](https://coveralls.io/github/bowman2001/goldmark-supersubscript)
[![https://goreportcard.com/report/github.com/bowman2001/goldmark-supersubscript](https://goreportcard.com/badge/github.com/bowman2001/goldmark-supersubscript)](https://goreportcard.com/report/github.com/bowman2001/goldmark-supersubscript)

# goldmark-SuperSubscript

This Go module contains two extensions for the Markdown parser [Goldmark](https://github.com/yuin/goldmark) providing super- and subscripts.
Expand All @@ -12,4 +16,4 @@ Similar to [markdown-it](https://github.com/markdown-it/markdown-it) the new mar

We need to place one before and one after the text segment like `H~2~O` or `x^2^`.

**No whitespace** between the two surrounding markup characters is allowed. In case we want to insert space we need to place a non-breaking whitespace—either directly or as HTML entity ` `.
**No whitespace** between the two surrounding markup characters is allowed. In case we want to insert space we need to place a non-breaking space—either directly or as HTML entity ` `.

0 comments on commit 9b56e3f

Please sign in to comment.