mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-05-19 18:58:03 +02:00
7bd5a06875
* refactor: Optimize code logic and reduce nesting. * ci: Improve Golang code quality with updated configuration file * chore: Update GitHub actions setup-go to version 5 and optimize caching.
30 lines
564 B
YAML
30 lines
564 B
YAML
name: Lint
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set Golang
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.21.x"
|
|
|
|
- name: Check spelling with custom config file
|
|
uses: crate-ci/typos@master
|
|
with:
|
|
config: ./.typos.toml
|
|
|
|
- name: Lint
|
|
uses: golangci/golangci-lint-action@v3
|
|
with:
|
|
version: latest
|