feat: Refactor blog model and add package comments #58
This file contains 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: Linter | |
on: | |
push: | |
branches: [ master, develop ] | |
paths-ignore: | |
- "**/*.md" | |
- ".scripts/*.sh" | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.21' ] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
vendor | |
$HOME/.cache/go-build | |
$GOPATH/pkg/mod | |
key: ${{ runner.os }}-laisky-blog-graphql | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- run: go version | |
- run: pwd | |
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | |
- run: go mod vendor | |
- run: go vet | |
- run: go test -race -coverprofile=coverage.txt -covermode=atomic ./... | |
- run: go test -bench ./... |