Skip to content

Commit

Permalink
jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Dec 23, 2023
1 parent 4f17481 commit 7b1950f
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/lint_and_test_go-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,25 @@ env:

# workflow tasks
jobs:
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Format
working-directory: ./go-client
run: |
gofmt -d .
test -z "$(gofmt -d .)"
lint:
name: Lint
needs: format
# go-client imports thrift package of 0.13.0, so we must use thrift-compiler 0.13.0
# to generate code as well. The thrift-compiler version on ubuntu-20.04 is 0.13.0
runs-on: ubuntu-20.04
Expand All @@ -63,11 +80,6 @@ jobs:
with:
version: v1.55.2
working-directory: ./go-client
- name: Format
working-directory: ./go-client
run: |
gofmt -d .
test -z "$(gofmt -d .)"

build_server:
name: Build server
Expand Down

0 comments on commit 7b1950f

Please sign in to comment.