Feat: Benchmarking #16
Workflow file for this run
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: Code Standards, Unit Tests, Race Trace Detection | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| # For Dev pipeline test on minimum and maximum version supported by package | |
| go-version: [1.18.x, 1.25.0] | |
| os: [ubuntu-latest] | |
| defaults: | |
| run: | |
| working-directory: go/src/github.com/syniol/go-logger | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/setup-go@v3 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - uses: actions/checkout@v3 | |
| with: | |
| path: 'go/src/github.com/syniol/go-logger' | |
| - name: Run Vet | |
| run: | | |
| go vet ./... | |
| - name: Run Lint | |
| run: | | |
| go install golang.org/x/lint/golint@latest | |
| golint . | |
| - name: Run Tests | |
| run: | | |
| go test -v ./... | |
| - name: Run Tests with Race Detector | |
| run: | | |
| go test -v -race ./... |