Skip to content

feat(LeetCode #14): add Longest Common Prefix solution #11

feat(LeetCode #14): add Longest Common Prefix solution

feat(LeetCode #14): add Longest Common Prefix solution #11

Workflow file for this run

name: Golang Linting
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: Run golangci-lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.21'
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1
- name: Print Go environment
run: |
go env
- name: Run golangci-lint
run: |
golangci-lint run ./...