update documentation to note that both -> and _ are supported by defa… #31
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
| name: Run Tests | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| name: Test with Coverage | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Go | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: '1.22' | |
| - name: Check out code | |
| uses: actions/checkout@v2 | |
| - name: Install dependencies | |
| run: | | |
| go mod download | |
| - name: Run Unit tests | |
| run: | | |
| go test -race -covermode atomic -coverprofile=coverage.out -v ./... | |
| - name: Install goveralls | |
| run: go install github.com/mattn/goveralls@latest | |
| - name: Send coverage | |
| env: | |
| COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
| run: goveralls -coverprofile=coverage.out -service=github | |
| # or use shogo82148/actions-goveralls | |
| # - name: Send coverage | |
| # uses: shogo82148/actions-goveralls@v1 | |
| # with: | |
| # path-to-profile: covprofile | |
| # Not sure why Codecov broke... | |
| # - name: Upload coverage reports to Codecov | |
| # uses: codecov/codecov-action@v5 | |
| # with: | |
| # files: ./coverage.out | |
| # token: ${{ secrets.CODECOV_TOKEN }} | |
| # slug: hackafterdark/carta |