Add tests for Compare, toAbsolutePath, GenDiff #59
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: test-and-lint | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| tags: | |
| - '**' | |
| jobs: | |
| check-project-quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.24' | |
| cache: true | |
| - name: Install dependencies | |
| run: | | |
| go mod download | |
| go mod tidy | |
| - name: Install golangci-lint | |
| run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | |
| - name: Verify installation | |
| run: | | |
| which golangci-lint | |
| golangci-lint version | |
| - name: Run tests | |
| run: make test | |
| - name: Run linter | |
| run: make lint |