feat: initial implementation of go-tlog with examples, CI and README #8
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: testing | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ '**' ] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Go tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.24.x' | |
| check-latest: true | |
| - name: Download deps | |
| run: go mod download | |
| - name: Run tests | |
| run: make test | |
| - name: Run tests with race-detector | |
| run: make test-race | |
| golangci-lint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/setup-go@v5 | |
| - uses: actions/checkout@v5 | |
| - name: Install golangci-lint | |
| uses: golangci/golangci-lint-action@v3 | |
| with: | |
| version: latest | |
| - name: Run linter | |
| run: make lint |