Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
unit-tests:
name: unit
name: unit-tests
runs-on: ubuntu-latest

steps:
Expand All @@ -28,7 +28,7 @@ jobs:
run: go test ./... -v

integration-tests:
name: integration
name: integration-tests
runs-on: ubuntu-latest

steps:
Expand All @@ -39,9 +39,31 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: '1.23.2'


- name: Run integration tests
run: go test -v -p 1 -count=1 -tags=integration ./...


system-tests:
name: system-tests
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.2'

- name: Install dependencies
run: cd tests/system && go mod download

- name: Install lumera
run: cd tests/scripts && ./install-lumera.sh

- name: Copy CSV file to home directory
run: cp claims.csv ~/

- name: Run system tests
run: cd tests/system && go test -tags=system_test -v .
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Go workspace file
go.work
go.work.sum

*tests/system/testnet
# env file
.env
/data
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Simple test targets
.PHONY: test test-unit test-integration test-system
.PHONY: test-unit test-integration test-system tests-system-setup

# Run unit tests (regular tests with code)
test-unit:
Expand All @@ -11,7 +11,7 @@ test-integration:

# Run system tests
test-system:
go test -v -tags=system ./...
cd tests/system && go test -tags=system_test -v .

# Run all tests
test: test-unit test-integration test-system
tests-system-setup:
cd tests/scripts && ./install-lumera.sh
Loading
Loading