mirror of
https://github.com/aljazceru/ark.git
synced 2026-02-02 18:14:49 +01:00
* fix and test cheating scenario (malicious double spend) * test and fix async vtxo cheating cases * add replace statement in go.mod * Update server/internal/core/application/covenantless.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * Update server/internal/infrastructure/wallet/btc-embedded/psbt.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * Update server/test/e2e/covenant/e2e_test.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * Update server/test/e2e/covenantless/e2e_test.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * Update server/test/e2e/covenantless/e2e_test.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * remove unused * [btc-embedded] fix GetNotificationChannel * [tx-builder] fix redeem transaction fee estimator * close grpc client in tests * [application] rework listentoscannerNotification * [application][covenant] fix getConnectorAmount * [tx-builder][covenant] get connector amount from wallet * e2e test sleep time * [liquid-standalone] ListConnectorUtxos: filter by script client side * fix Makefile integrationtest * do not use cache in integration tests * use VtxoKey as argument of findForfeitTxBitcoin * wrap adversarial test in t.Run * increaste test timeout * CI: setup go 1.23.1 * CI: revert go version * add replace in server/go.mod * Update server/internal/core/application/covenant.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> * remove replace * readd replace statement * fixes * go work sync * fix CI --------- Signed-off-by: Louis Singer <41042567+louisinger@users.noreply.github.com> Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
88 lines
2.0 KiB
YAML
Executable File
88 lines
2.0 KiB
YAML
Executable File
name: ci_unit
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'server/**'
|
|
- 'pkg/client-sdk/**'
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'server/**'
|
|
- 'pkg/client-sdk/**'
|
|
|
|
jobs:
|
|
check-go-sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: '>=1.23.1'
|
|
|
|
- name: Run go work sync
|
|
run: go work sync
|
|
|
|
- name: Check for changes
|
|
run: |
|
|
if [[ -n $(git status --porcelain) ]]; then
|
|
echo "Changes detected after running go work sync and go mod tidy"
|
|
git diff
|
|
exit 1
|
|
fi
|
|
|
|
test-server:
|
|
name: server unit tests
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./server
|
|
steps:
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: '>=1.23.1'
|
|
- uses: actions/checkout@v3
|
|
- name: check linting
|
|
uses: golangci/golangci-lint-action@v6
|
|
with:
|
|
version: v1.61
|
|
working-directory: ./server
|
|
args: --timeout 5m
|
|
- name: check code integrity
|
|
uses: securego/gosec@master
|
|
with:
|
|
args: '-severity high -quiet -exclude=G115 ./...'
|
|
- name: Run go work sync
|
|
run: go work sync
|
|
- name: unit testing
|
|
run: make test
|
|
|
|
test-sdk:
|
|
name: sdk unit tests
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ./pkg/client-sdk
|
|
steps:
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version: '>=1.23.1'
|
|
- uses: actions/checkout@v3
|
|
- name: check linting
|
|
uses: golangci/golangci-lint-action@v6
|
|
with:
|
|
version: v1.61
|
|
working-directory: ./pkg/client-sdk
|
|
args: --timeout 5m
|
|
- name: check code integrity
|
|
uses: securego/gosec@master
|
|
with:
|
|
args: '-severity high -quiet -exclude=G115 ./...'
|
|
- run: go get -v -t -d ./...
|
|
- name: unit testing
|
|
run: make test |