From 9f6ead0aadb2212cf8969a376abe01771f1d0a75 Mon Sep 17 00:00:00 2001 From: Vincent Le Goff Date: Wed, 27 Sep 2023 08:17:34 -0400 Subject: [PATCH] ci: improving go ci --- .github/workflows/go-lint.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go-lint.yml b/.github/workflows/go-lint.yml index 8a2583e..609565b 100644 --- a/.github/workflows/go-lint.yml +++ b/.github/workflows/go-lint.yml @@ -3,14 +3,21 @@ on: pull_request: paths: - "libraries/go/**" + - ".github/workflows/go-lint.yml" jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Setup go + uses: actions/setup-go@v4 + with: + go-version-file: libraries/go.mod - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: version: latest working-directory: libraries/go - + args: "--out-format colored-line-number" + - name: run tests + run: cd libraries && go test -v ./...