-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add separate test action for raft
- Loading branch information
1 parent
9d780f4
commit b48a7ed
Showing
2 changed files
with
66 additions
and
0 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,65 @@ | ||
name: "raft test" | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- "master" | ||
paths: | ||
- "node/pkg/raft/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
core-build: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
|
||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: orakl-test | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
redis: | ||
image: redis | ||
options: >- | ||
--health-cmd "redis-cli ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 6379:6379 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22.3" | ||
check-latest: true | ||
cache-dependency-path: | | ||
./node/go.sum | ||
- name: Install dependencies | ||
run: | | ||
cd ./node | ||
go mod tidy | ||
- name: Install Task | ||
uses: arduino/setup-task@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run test | ||
run: | | ||
cd ./node | ||
task local:test-raft | ||
env: | ||
ENCRYPT_PASSWORD: "anything" |