forked from go-zookeeper/zk
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce github actions to validate commits
- Loading branch information
1 parent
67688ea
commit da4f072
Showing
5 changed files
with
50 additions
and
42 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,33 @@ | ||
name: integration_test | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
integration_test: | ||
name: integration_test | ||
strategy: | ||
matrix: | ||
zk-version: ["3.5.8", "3.6.3"] | ||
go-version: ["1.21"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Go ${{ matrix.go-version }} setup | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Setup Java 14 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 14 | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Test code | ||
run: make test ZK_VERSION=${{ matrix.zk-version }} | ||
|
||
- name: Upload code coverage | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: ./profile.cov |
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 |
---|---|---|
@@ -1,14 +1,21 @@ | ||
|
||
name: lint | ||
on: [pull_request] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
name: lint | ||
strategy: | ||
matrix: | ||
go-version: ["1.21"] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v1 | ||
- name: Lint code | ||
uses: reviewdog/action-golangci-lint@v1 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install go | ||
uses: actions/setup-go@v4 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Lint code | ||
uses: golangci/golangci-lint-action@v3 |
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
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