-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added TS example runner. (#29)
* feat: Added TS example runner. * fix: Created a env file before running the examples. * chore: Updated the BASE_URL in dart client, Created another workflow to run the dart examples. * fix: Created another organizations while testing.
- Loading branch information
1 parent
ce1a322
commit a99f686
Showing
9 changed files
with
104 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Dart-Client run examples | ||
|
||
on: | ||
push: | ||
branches: | ||
[development, development_*] | ||
pull_request: | ||
branches: | ||
[development, development_*] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Dart | ||
uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: '3.1.4' | ||
|
||
- name: Install dependencies | ||
run: cd clients/dart/switchkeys && dart pub get | ||
|
||
- name: Create .env file | ||
run: | | ||
cd clients/dart/switchkeys | ||
touch .env | ||
echo BASE_URL=${{ secrets.BASE_URL }} >> .env | ||
cat .env | ||
- name: Run Examples | ||
run: cd clients/dart/switchkeys && dart example.dart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: TS-Client run examples | ||
|
||
on: | ||
push: | ||
branches: | ||
[development, development_*] | ||
pull_request: | ||
branches: | ||
[development, development_*] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.18.0' | ||
|
||
- name: Install dependencies | ||
run: cd clients/typescript && yarn install | ||
|
||
- name: Create .env file | ||
run: | | ||
cd clients/typescript | ||
touch .env | ||
echo BASE_URL=${{ secrets.BASE_URL }} >> .env | ||
cat .env | ||
- name: Compile TypeScript | ||
run: cd clients/typescript && yarn build | ||
|
||
- name: Run Examples | ||
run: cd clients/typescript && npx ts-node ./example.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters