docs: readme #49
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: Go Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: "stable" | |
| - name: Install dependencies | |
| run: go mod tidy | |
| - name: Run root module tests | |
| run: go test ./... -v | |
| - name: Install examples module dependencies | |
| working-directory: examples | |
| run: go mod tidy | |
| - name: Run examples module tests | |
| working-directory: examples | |
| run: go test ./... -v | |
| - name: Run tests with coverage | |
| run: go test -coverprofile=coverage.txt | |
| - name: Upload results to Codecov | |
| uses: codecov/codecov-action@v5 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |