test(cardinal): write tests for cardinal search.go to maintain api #304
Workflow file for this run
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: Lint | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
pr-lint: | |
name: PR Title Lint | |
if: github.event_name == 'pull_request' | |
permissions: | |
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs | |
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR | |
runs-on: ubuntu-latest | |
steps: | |
- uses: amannn/action-semantic-pull-request@v5.1.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
golangci-lint: | |
name: golangci-lint | |
runs-on: ubuntu-latest | |
env: | |
GO_VERSION: 1.21.0 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Golang | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Cache Golang Deps | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
/home/runner/go | |
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-golang- | |
- name: Make Lint | |
run: make lint |