forked from goharbor/harbor-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request goharbor#136 from bishal7679/dagger-ci
Added go Linting in pull request flow
- Loading branch information
Showing
6 changed files
with
87 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,20 +34,21 @@ jobs: | |
- name: Test with the Go CLI | ||
run: go test -v ./... | ||
|
||
# - name: Call Linting Function | ||
# uses: dagger/[email protected] | ||
# with: | ||
# version: "latest" | ||
# verb: call | ||
# module: github.com/bishal7679/[email protected] | ||
# args: lint-code --directory-arg=. | ||
- name: Call Linting Function | ||
uses: dagger/[email protected] | ||
with: | ||
version: "latest" | ||
verb: call | ||
module: github.com/bishal7679/[email protected] | ||
args: lint-code --directory-arg=. | ||
|
||
- name: Call Pull-Request Function | ||
uses: dagger/[email protected] | ||
if: always() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
version: "latest" | ||
verb: call | ||
module: github.com/bishal7679/[email protected] | ||
args: pull-request --directory-arg=. --github-token=${{ env.GITHUB_TOKEN }} | ||
args: pull-request --directory-arg=. --github-token=${{ env.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.