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 504c23f commit 8e90769
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: lint

on:
Expand All @@ -13,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
9 changes: 6 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: test

on:
Expand All @@ -16,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 @@ -40,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 8e90769

Please sign in to comment.