mirror of
https://github.com/aljazceru/ark.git
synced 2026-02-03 18:44:45 +01:00
* ark credits * rename "ecash" --> "ark credit" * rework note_test.go * NewFromString * create several notes * note repo: rename "push" to "add" * RegisterInputsForNextRoundRequest: move "notes" to field #3 * use uint64 as note ID * rename to voucher * add nostr notification * nostr notification test and fixes * bump badger to 4.3 * allow npub to be registered * rename poolTxID * add default relays * Update server/internal/config/config.go Co-authored-by: Marco Argentieri <3596602+tiero@users.noreply.github.com> * fix RedeemVouchers test * notification = voucher * WASM wrappers * fix arkd voucher cmd * test_utils.go ignore gosec rule G101 * fix permissions * rename ALL to notes * add URI prefix * note.go : fix signature encoding * fix decode note.Data * Update server/internal/infrastructure/notifier/nostr/nostr.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> * Update pkg/client-sdk/wasm/browser/wrappers.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> * Update server/internal/infrastructure/notifier/nostr/nostr.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> * rework note and entity db + sqlite implementations * NOTIFICATION_PREFIX -> NOTE_URI_PREFIX * validate NOTE_URI_PREFIX * Update defaults to convenant-less mainnet (#2) * config: defaults to convenant-less tx builder * Drop env var for blockchain scanner --------- Co-authored-by: altafan <18440657+altafan@users.noreply.github.com> * add // before URI prefix * add URI prefix in admin CreateNote * Fixes * rework nonces encoding (#4) * rework nonces encoding * add a check in Musig2Nonce decode function * musig2_test: increase number of signers to 20 * musig2.json: add a test case with a 35 leaves tree * GetEventStream REST rework * fix round phases time intervals * [SDK] Use server-side streams in rest client * Fix history * make the URI optional * Updates * Fix settled txs in history * fix e2e test * go work sync in sdk unit test * fix signMessage in btc and liquid sdk wallets --------- Co-authored-by: Marco Argentieri <3596602+tiero@users.noreply.github.com> Co-authored-by: Pietralberto Mazza <18440657+altafan@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
|
|
- 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 |