Skip to content

Commit

Permalink
replace reviewdog action with official golangci action
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Jan 11, 2024
1 parent 9f00855 commit afc9367
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
run: |
./generate_protos.sh
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: ">=1.21.0"
go-version: "1.21"
cache-dependency-path: flow/go.sum

- name: install gotestsum
Expand Down
43 changes: 19 additions & 24 deletions .github/workflows/golang-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,30 @@ on:
branches: [main]
paths: [flow/**]

permissions:
contents: read

jobs:
golangci-lint:
permissions:
checks: write
contents: read
pull-requests: write
strategy:
matrix:
runner: [ubicloud-standard-4-ubuntu-2204-arm]
runs-on: ${{ matrix.runner }}
golangci:
name: lint
runs-on: [ubicloud-standard-4-ubuntu-2204-arm]
steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: recursive

- uses: actions/checkout@v4
- uses: bufbuild/[email protected]

- name: setup protos
run: |
./generate_protos.sh
- name: install lib-geos
run: |
sudo apt-get update
sudo apt-get install libgeos-dev
- uses: actions/setup-go@v5
with:
go-version: "1.21"
cache: false
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
uses: golangci/golangci-lint-action@v3
with:
workdir: ./flow
reporter: github-pr-review
github_token: ${{ secrets.GITHUB_TOKEN }}
golangci_lint_flags: "--timeout 10m"
fail_on_error: true
env:
REVIEWDOG_TOKEN: ${{ secrets.REVIEWDOG_TOKEN }}
version: v1.55
working-directory: ./flow
args: --timeout=10m

0 comments on commit afc9367

Please sign in to comment.