docs: simplify README and extract usage syntax conventions #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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: stable | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@v7 | |
| build: | |
| name: Build and test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| # go-version: ['oldstable', 'stable', '1.23.0-rc.2'] | |
| go-version: ["oldstable", "stable"] | |
| env: | |
| VERBOSE: 1 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Install tparse | |
| run: go install github.com/mfridman/tparse@main | |
| - name: Build | |
| run: go build -v . | |
| - name: Run tests | |
| shell: bash | |
| run: | | |
| go test $(go list ./... | grep -v 'examples') -count=1 -v -json -cover \ | |
| | tparse -all -follow -sort=elapsed -trimpath=auto |