[IMPLEMENT] sql pagination #5
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 of this workflow | |
name: Go Lint & Test | |
# Triggered on pull request and push events for any branch | |
on: | |
pull_request: | |
branches: | |
- "**" | |
push: | |
branches: | |
- 'main' | |
# Defining jobs | |
jobs: | |
# Lint job for Go code | |
lint: | |
name: Lint Go Code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 # Checks out the code | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' # Sets up Go 1.22 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54 # Uses golangci-lint version 1.54 | |
# Test job for Go on Linux with Go 1.22 | |
test: | |
name: Test on Linux with Go 1.22 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' # Sets up Go 1.22 | |
- uses: actions/checkout@v3 # Checks out the code | |
- name: Test | |
run: go test -v ./... # Runs Go tests |