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
69 changes: 69 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# name: tests

# on:
# push:
# paths-ignore:
# - '**.md'
# - 'docs/**'
# - '.gitignore'

# jobs:
# unit-tests:
# name: unit-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.24'

# - name: Install dependencies
# run: go mod download

# - name: Run unit tests
# run: go test ./... -v

# integration-tests:
# name: integration-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.24'

# - 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.24'

# - 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
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
.PHONY: test-unit test-integration test-system tests-system-setup

# Run unit tests (regular tests with code)
test-unit:
go test -v ./...

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

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

tests-system-setup:
cd tests/scripts && ./install-lumera.sh

gen-lumera-proto:
cd ./proto/lumera/action && protoc --go_out=../../../gen/lumera/action --go-grpc_out=../../../gen/lumera/action --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative action.proto && cd ../../../
cd ./proto/lumera/action && protoc --go_out=../../../gen/lumera/action --go-grpc_out=../../../gen/lumera/action --go_opt=paths=source_relative --go-grpc_opt=paths=source_relative action_service.proto && cd ../../../
Expand Down
Loading