Skip to content

Commit 27dd1a8

Browse files
committed
Add components tests
1 parent 8fe662f commit 27dd1a8

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,24 @@ jobs:
3838
make install_lint
3939
make lint
4040
41+
tests-components:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout
45+
uses: actions/checkout@v2
46+
with:
47+
submodules: true
48+
- uses: actions/setup-go@v2
49+
with:
50+
go-version: '^1.17'
51+
- name: "Launch db engine in background"
52+
run: |
53+
make test-database-up
54+
- name: "Give time for processes to start"
55+
run: sleep 5
56+
- name: Components tests
57+
run: make test-components
58+
4159
tests-integration:
4260
runs-on: ubuntu-latest
4361
steps:

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ test-database: build
2929
test-integration: build
3030
go test -v ./indexer/tests/...
3131

32+
test-components: build
33+
go test -v ./components/...
34+
3235
# Docker
3336
test-database-up:
3437
docker-compose -f ./indexer/tests/docker-compose.yml up -d

0 commit comments

Comments
 (0)