-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move workflows to standalone files (#116)
* moves CI to individual files (WIP: path based actions) * enable conditional paths for workflows
- Loading branch information
1 parent
b1b6db8
commit 721dea9
Showing
5 changed files
with
124 additions
and
39 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: async-icq | ||
on: | ||
pull_request: | ||
paths: | ||
- 'modules/async-icq/**' | ||
- '.github/workflows/async-icq.yml' | ||
|
||
env: | ||
LINT_VERSION: v1.52 | ||
GO_VERSION: 1.21.0 | ||
WORKING_DIRECTORY: modules/async-icq/ | ||
|
||
jobs: | ||
golangci: | ||
name: Linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: ${{ env.LINT_VERSION }} | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
args: --timeout=5m | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
name: test | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Test | ||
run: go test ./... | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
|
||
# TODO: e2e |
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
name: ibc-hooks | ||
on: | ||
pull_request: | ||
paths: | ||
- 'modules/ibc-hooks/**' | ||
- '.github/workflows/ibc-hooks.yml' | ||
|
||
env: | ||
LINT_VERSION: v1.52 | ||
GO_VERSION: 1.21.0 | ||
WORKING_DIRECTORY: modules/ibc-hooks/ | ||
|
||
jobs: | ||
golangci: | ||
name: Linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: ${{ env.LINT_VERSION }} | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
args: --timeout=5m | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
name: test | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Test | ||
run: go test ./... | ||
working-directory: ${{ env.WORKING_DIRECTORY }} |
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,42 @@ | ||
name: packet-forward-middleware | ||
on: | ||
pull_request: | ||
paths: | ||
- 'middleware/packet-forward-middleware/**' | ||
- '.github/workflows/packet-forward-middleware.yml' | ||
|
||
env: | ||
LINT_VERSION: v1.52 | ||
GO_VERSION: 1.21.0 | ||
WORKING_DIRECTORY: middleware/packet-forward-middleware/ | ||
|
||
jobs: | ||
golangci: | ||
name: Linter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: ${{ env.LINT_VERSION }} | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
args: --timeout=5m | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
name: test | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Test | ||
run: go test ./... | ||
working-directory: ${{ env.WORKING_DIRECTORY }} | ||
|
||
# TODO: e2e |
This file was deleted.
Oops, something went wrong.