mirror of
https://github.com/aljazceru/ark.git
synced 2026-02-01 17:44:39 +01:00
* wasm e2e test * Remove ark-sdk.wasm.gz from repository * pr review * exclude test files from linting * fix * test fix * go work sync * gha fix * gha fix * wasm e2e test * kill webserver * Fix nonce encoding/decoding & Fix pop from queue of payment requests (#375) * bug fix - paymentMap pop input traversal * bug fix - nonce encode/decode * pr review * pr review * Fix trivy gh action (#381) * Update trivy gha * Update tryvy gha * Fix * merge * Panic recovery in app svc (#372) * panic recovery * pr review * Support connecting to bitcoind via ZMQ (#286) * add ZMQ env vars * consolidate config and app-config naming * [Server] Validate forfeit txs without re-building them (#382) * compute forfeit partial tx client-side first * fix conflict * go work sync * move verify sig in VerifyForfeits * move check after len(inputs) * Hotfix: Prevent ZMQ-based bitcoin wallet to panic (#383) * Hotfix bct embedded wallet w/ ZMQ * Fixes * Rename vtxo is_oor to is_pending (#385) * Rename vtxo is_oor > is_pending * Clean swaggers * Change representation of taproot trees & Internal fixes (#384) * migrate descriptors --> tapscripts * fix covenantless * dynamic boarding exit delay * remove duplicates in tree and bitcointree * agnostic signatures validation * revert GetInfo change * renaming VtxoScript var * Agnostic script server (#6) * Hotfix: Prevent ZMQ-based bitcoin wallet to panic (#383) * Hotfix bct embedded wallet w/ ZMQ * Fixes * Rename vtxo is_oor to is_pending (#385) * Rename vtxo is_oor > is_pending * Clean swaggers * Revert changes to client and sdk * descriptor in oneof * support CHECKSIG_ADD in MultisigClosure * use right witness size in OOR tx fee estimation * Revert changes --------- Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> * fix unit test * fix unit test * fix unit test --------- Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> Co-authored-by: Marco Argentieri <3596602+tiero@users.noreply.github.com> Co-authored-by: Louis Singer <41042567+louisinger@users.noreply.github.com>
89 lines
2.1 KiB
YAML
Executable File
89 lines
2.1 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 --skip-files=.*_test.go
|
|
- 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 |