docs: update README #569
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: [push, pull_request] | |
| name: test | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go-version: [1.25.x,1.26.x,1.27.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@v8 | |
| with: | |
| version: latest | |
| if: "matrix.platform == 'ubuntu-latest'" # gofmt linter fails on Windows for CRLF problems | |
| - name: Run tests | |
| env: | |
| GOLDMARK_TEST_TIMEOUT_MULTIPLIER: 5 | |
| run: make test | |
| - name: Install goveralls | |
| run: go install github.com/mattn/goveralls@latest | |
| - name: Send coverage | |
| if: "matrix.platform == 'ubuntu-latest'" | |
| env: | |
| COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: goveralls -coverprofile=coverage.out -service=github |