Update README and improve output formatting #76
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: | |
| 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: '1.21' | |
| cache: false | |
| - name: Install dependencies | |
| run: go mod download | |
| - name: Build | |
| run: go build ./... | |
| - name: Test | |
| run: go test ./... | |
| dogfood: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.21' | |
| cache: false | |
| - name: Build QuickDup | |
| run: go build -o quickdup ./cmd/quickdup | |
| - name: Run QuickDup on itself | |
| run: ./quickdup -path . -ext .go --github-annotations --git-diff origin/${{ github.base_ref || 'main' }} --no-cache |