Skip to content

Commit

Permalink
gh actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
elnosh committed May 23, 2024
1 parent e958977 commit a4c0e1d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 5 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Go Fmt
run: go fmt ./...

- name: Go Vet
run: go vet ./...

- name: Tests
run: go test -v ./...

- name: Integration Tests
run: go test -v --tags=integration ./mint
- run: go test -v --tags=integration ./wallet
6 changes: 2 additions & 4 deletions crypto/bdhke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ func TestHashToCurve(t *testing.T) {
}
}


func TestBlindMessage(t *testing.T) {
tests := []struct {
secret string
Expand Down Expand Up @@ -170,8 +169,7 @@ func TestVerify(t *testing.T) {
}
}


// Tests for deprecated HashToCurve
// Tests for deprecated HashToCurve
func TestHashToCurveDeprecated(t *testing.T) {
tests := []struct {
message string
Expand Down Expand Up @@ -228,4 +226,4 @@ func TestBlindMessageDeprecated(t *testing.T) {
t.Errorf("expected '%v' but got '%v' instead\n", test.expected, B_Hex)
}
}
}
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/btcsuite/btcd/btcec/v2 v2.3.3
github.com/btcsuite/btcd/btcutil v1.1.5
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0
github.com/elnosh/btc-docker-test v0.0.0-20240516172412-66d8d1782e3c
github.com/elnosh/btc-docker-test v0.0.0-20240523191535-bb8397ff71f7
github.com/gorilla/mux v1.8.0
github.com/joho/godotenv v1.5.1
github.com/lightningnetwork/lnd v0.17.4-beta.rc1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkp
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/elnosh/btc-docker-test v0.0.0-20240516172412-66d8d1782e3c h1:LXQMak0LIMl9CP+0bo3egNpKyM48RysgQgsemCuJ+d0=
github.com/elnosh/btc-docker-test v0.0.0-20240516172412-66d8d1782e3c/go.mod h1:5GQRdR6yg5zIuTV8ZM6bPsp1R10d7XJNQHys/knsXsg=
github.com/elnosh/btc-docker-test v0.0.0-20240523191535-bb8397ff71f7 h1:qDXB1ZlkpGDnPuexpXOp5i9ScI1/clB93JQfE6Fhgmc=
github.com/elnosh/btc-docker-test v0.0.0-20240523191535-bb8397ff71f7/go.mod h1:5GQRdR6yg5zIuTV8ZM6bPsp1R10d7XJNQHys/knsXsg=
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
Expand Down

0 comments on commit a4c0e1d

Please sign in to comment.