Skip to content

Commit

Permalink
use golang lint gh actoin
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkruger committed Dec 16, 2024
1 parent 49ea11e commit 5e7e14d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@ jobs:

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y git python3-pip
go install github.com/jstemmer/go-junit-report@v1.0.0
go install github.com/kyoh86/richgo@v0.3.10
go install gotest.tools/gotestsum@latest
pip install pre-commit
- name: Run pre-commit hooks
run: pre-commit run -a golangci-lint
- name: Install golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
version: v1.53.3

- name: Run golangci-lint
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
with:
extra_args: golangci-lint --all-files

- name: Run tests with gotestsum
run: |
Expand Down Expand Up @@ -57,8 +61,9 @@ jobs:
- name: Checkout Code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29

- name: Install npm
run: sudo apt-get install -y npm
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: 20

- name: Install action-docs
run: npm install action-docs
Expand Down

0 comments on commit 5e7e14d

Please sign in to comment.