From 1ece270c0037a7bf83f36ecbc9ce04f048f76444 Mon Sep 17 00:00:00 2001 From: ditatompel Date: Fri, 24 May 2024 05:38:58 +0700 Subject: [PATCH] Add golangci-lint test workflow --- .github/workflows/workflow.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..c36f8d0 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,19 @@ +on: + push: + branches: + - main + pull_request: +name: Test +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: 1.22.x + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 + with: + version: latest