Skip to content

Commit

Permalink
ci: improving go ci (#14)
Browse files Browse the repository at this point in the history
This PR solves few issues:
- uses newer version of the actions
- triggers on changes on the ci file
- add better args for the linting : golangci/golangci-lint-action#119 (comment)
- runs golang tests
  • Loading branch information
zekth committed Sep 27, 2023
1 parent 96d31b2 commit 0c3a5b1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...

0 comments on commit 0c3a5b1

Please sign in to comment.