-
Notifications
You must be signed in to change notification settings - Fork 68
38 lines (38 loc) · 1.04 KB
/
ci-bookie-checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Pulsarctl
on:
pull_request:
branches:
- '*'
path-ignores:
- 'docs/**'
- 'README.md'
- 'CONTRIBUTING.md'
jobs:
bookie-ut-tests:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.22
uses: actions/setup-go@v1
with:
go-version: 1.22
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run bookKeeper service
run: |
pushd test/docker
docker compose pull
docker compose up -d
popd
- name: Check bookKeeper service
run: |
./test/script/check.sh bookieHTTP
- name: Write dummy data
run: |
docker exec bk bin/bookkeeper shell simpletest -ensemble 1 -writeQuorum 1 -ackQuorum 1 -numEntries 10
docker exec bk bin/bookkeeper shell simpletest -ensemble 1 -writeQuorum 1 -ackQuorum 1 -numEntries 10
- name: Test
run: |
# docker ps
# CGO_ENABLED=1 go test -v -race ./pkg/bkctl/...
# CGO_ENABLED=1 go test -v -race ./pkg/bookkeeper/...