Skip to content

Commit

Permalink
chore: Action Lint CI
Browse files Browse the repository at this point in the history
  • Loading branch information
KoiHawUwU authored May 29, 2024
1 parent 6bebd19 commit a4db2a3
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go lint

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
jobs:

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@master
with:
go-version: '1.22'

- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: golangci-lint
uses: golangci/golangci-lint-action@master
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest

0 comments on commit a4db2a3

Please # to comment.