Skip to content

Commit

Permalink
Format workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatthm committed Jan 19, 2024
1 parent c625871 commit cdecd6d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ jobs:
steps:
- name: Checkout code
uses: nhatthm/gh-actions/checkout@master

- name: Setup
uses: nhatthm/gh-actions/find-go-version@master

- name: Install Go
uses: nhatthm/gh-actions/setup-go@master
with:
go-version: ${{ env.GO_LATEST_VERSION }}

- name: Lint
uses: nhatthm/gh-actions/golangci-lint@master
8 changes: 5 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ jobs:
go-latest-version: ${{ steps.find-go-version.outputs.go-latest-version }}
go-supported-versions: ${{ steps.find-go-version.outputs.go-supported-versions }}
steps:
- uses: nhatthm/gh-actions/checkout@master
- name: Checkout code
uses: nhatthm/gh-actions/checkout@master

- id: find-go-version
name: Find Go version
uses: nhatthm/gh-actions/find-go-version@master

test:
Expand All @@ -41,11 +44,10 @@ jobs:
go-version: ${{ matrix.go-version }}

- name: Test
id: test
run: |
make test
- name: Upload code coverage
- name: Upload code coverage (unit)
if: matrix.go-version == env.GO_LATEST_VERSION
uses: nhatthm/gh-actions/codecov@master
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
steps:
- name: Checkout code
uses: nhatthm/gh-actions/checkout@master

- name: Notify registries
uses: nhatthm/gh-actions/notify-go-registries@master
with:
Expand Down

0 comments on commit cdecd6d

Please sign in to comment.