-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Eduardo Apolinario <[email protected]>
- Loading branch information
1 parent
67ba70b
commit 272321a
Showing
3 changed files
with
110 additions
and
13 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Lint | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
component: | ||
required: true | ||
type: string | ||
go-version: | ||
required: true | ||
type: string | ||
jobs: | ||
lint: | ||
name: Run Lint | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ${{ inputs.component }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ inputs.go-version }} | ||
- name: Lint | ||
run: make install && make lint |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
component: | ||
required: true | ||
type: string | ||
go-version: | ||
required: true | ||
type: string | ||
secrets: | ||
FLYTE_BOT_PAT: | ||
required: true | ||
jobs: | ||
tests: | ||
name: Run Unit Test | ||
defaults: | ||
run: | ||
working-directory: ${{ inputs.component }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ inputs.go-version }} | ||
- name: Unit Tests | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} | ||
run: make install && make test_unit_codecov | ||
# TODO(monorepo): Figure out how to do code coverage aggregation | ||
- name: Push CodeCov | ||
uses: codecov/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FLYTE_BOT_PAT }} | ||
with: | ||
file: coverage.txt | ||
flags: unittests | ||
fail_ci_if_error: false |