feat: Upgrade Go version in Dockerfile and add note for Markdown hand… #123
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.22' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
vendor | |
$HOME/.cache/go-build | |
$GOPATH/pkg/mod | |
key: ${{ runner.os }}-laisky-blog-graphql | |
- uses: actions/setup-go@v5 | |
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 ./... |