Skip to content

Commit

Permalink
Refactor/remove old samples (#1600)
Browse files Browse the repository at this point in the history
  • Loading branch information
fundthmcalculus authored Feb 16, 2024
1 parent 0d00109 commit fbb8ede
Show file tree
Hide file tree
Showing 36 changed files with 47 additions and 30,323 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/test-golang.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/test-infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ jobs:
- uses: actions/cache@v3
id: npm-cache
with:
path: './sdk/samples/grpc-web/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('./sdk/samples/grpc-web/package.lock') }}
path: './sdk/web/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('./sdk/web/package.lock') }}
restore-keys: ${{ runner.os }}-modules-
- uses: actions/setup-node@v3
name: Setup Node v18
with:
node-version: 18
cache: 'npm'
cache-dependency-path: ./sdk/samples/grpc-web/package-lock.json
cache-dependency-path: ./sdk/web/package-lock.json
- run: npm ci
if: ${{ steps.npm-cache.outputs.cache-hit != 'true' }}
name: "Install packages"
shell: pwsh
working-directory: ./sdk/samples/grpc-web
working-directory: ./sdk/web
- run: npm run test:browser -- --trinsic_environment="${{ inputs.environment }}"
name: "Run grpc-web tests"
shell: pwsh
working-directory: ./sdk/samples/grpc-web
working-directory: ./sdk/web
21 changes: 20 additions & 1 deletion docs/go/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,26 @@ go install github.com/trinsic-id/sdk/go@latest
2. Test the installation by running the following go code:
<!--codeinclude-->
```golang
[GoSample](../../samples/go/sample.go) inside_block:main
package main

import (
"context"
"fmt"
sdk "github.com/trinsic-id/sdk/go/services"
)

func main() {
trinsic, err := sdk.NewTrinsic()
if err != nil {
panic("Account service not created")
}

profile, err := trinsic.Account().LoginAnonymous(context.Background())
if err != nil {
panic("Sign in failed!")
}
fmt.Printf("%v\n", profile)
}
```
<!--/codeinclude-->

File renamed without changes.
File renamed without changes.
17 changes: 0 additions & 17 deletions samples/go/go.mod

This file was deleted.

160 changes: 0 additions & 160 deletions samples/go/go.sum

This file was deleted.

20 changes: 0 additions & 20 deletions samples/go/sample.go

This file was deleted.

Loading

0 comments on commit fbb8ede

Please sign in to comment.