Skip to content

Commit

Permalink
Merge pull request #2 from radixdlt/update-exports-and-ci
Browse files Browse the repository at this point in the history
feat: add types exports + ci changes
  • Loading branch information
dawidsowardx authored Sep 12, 2023
2 parents c9736a2 + bab2940 commit 35076f7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 66 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/main.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Build typescript ROLA

name: Build
on:
push:
branches: ['**']
Expand Down Expand Up @@ -74,36 +73,27 @@ jobs:
# args: --all-projects --org=${{ env.SNYK_PROJECTS_ORG_ID }} --format=cyclonedx1.4+json --json-file-output sbom.json
# command: sbom

test_and_lint:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.3.0'
node-version: '18.17.1'

- name: Install dependencies
run: npm ci

- name: Running lint
run: npm run lint

# todo: failing in CI with code 139
# - name: Running tests
# run: npm run test

- name: Build
run: npm run build

- name: Prepare artifact
run: rm -rf node_modules e2e src sandbox

- uses: actions/upload-artifact@v3
with:
name: typescript-rola.${{ github.sha }}
path: .
- name: Running tests
run: npm run test

# snyk_monitor:
# runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Release
on:
push:
branches:
- main
- develop
- release/*
workflow_dispatch:
Expand Down
52 changes: 1 addition & 51 deletions src/radix-connect-webrtc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,4 @@ export { createLogger } from './utils/logger'
export { WebRtcSubjects } from './connector/webrtc/subjects'
export { SignalingSubjects } from './connector/signaling/subjects'
export { ConnectorClientSubjects } from './connector/subjects'

export const turnServers = {
test: [
{
urls: 'turn:turn-dev-udp.rdx-works-main.extratools.works:80?transport=udp',
username: 'username',
credential: 'password',
},
{
urls: 'turn:turn-dev-tcp.rdx-works-main.extratools.works:80?transport=tcp',
username: 'username',
credential: 'password',
},
],
rcnet: [
{
urls: 'turn:turn-rcnet-udp.radixdlt.com:80?transport=udp',
username: 'username',
credential: 'password',
},
{
urls: 'turn:turn-rcnet-tcp.radixdlt.com:80?transport=tcp',
username: 'username',
credential: 'password',
},
],
production: [
{
urls: 'turn:turn-udp.radixdlt.com:80?transport=udp',
username: 'username',
credential: 'password',
},
{
urls: 'turn:turn-tcp.radixdlt.com:80?transport=tcp',
username: 'username',
credential: 'password',
},
],
development: [
{
urls: 'turn:turn-dev-udp.rdx-works-main.extratools.works:80?transport=udp',
username: 'username',
credential: 'password',
},
{
urls: 'turn:turn-dev-tcp.rdx-works-main.extratools.works:80?transport=tcp',
username: 'username',
credential: 'password',
},
],
} as const
export { type ConnectionConfig, type TurnServer } from './connector/_types'

0 comments on commit 35076f7

Please sign in to comment.