Skip to content

Commit

Permalink
Merge pull request #116 from AfricasTalkingLtd/feature/YODA-T-4
Browse files Browse the repository at this point in the history
Feature/YODA-T-4
  • Loading branch information
aksalj authored Oct 5, 2023
2 parents abd3819 + 66985fb commit c63dcc9
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 591 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
create_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Dependencies
run: npm install
- name: Create Release
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@ on:
jobs:
build:
runs-on: ubuntu-latest
environment: Staging Environment
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm i
- run: npm test
env:
AT_APP_API_KEY: ${{secrets.AT_APP_API_KEY}}
AT_APP_USERNAME: ${{secrets.AT_APP_USERNAME}}
TEST_PHONENUMBER: ${{secrets.TEST_PHONENUMBER}}

publish-npm:
needs: build
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test SDK

on:
push:

jobs:
TEST-SDK:
runs-on: ubuntu-latest
environment: Staging Environment
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm i
- run: npm test
env:
AT_APP_API_KEY: ${{secrets.AT_APP_API_KEY}}
AT_APP_USERNAME: ${{secrets.AT_APP_USERNAME}}
TEST_PHONENUMBER: ${{secrets.TEST_PHONENUMBER}}
6 changes: 3 additions & 3 deletions test/fixtures.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

exports.TEST_ACCOUNT = {
apiKey: '',
username: 'sandbox',
apiKey: process.env.AT_APP_API_KEY,
username: process.env.AT_APP_USERNAME,
format: 'json',
};
exports.phoneNumber = '+2547XXXXXXXX';
exports.phoneNumber = process.env.TEST_PHONENUMBER;
Loading

0 comments on commit c63dcc9

Please sign in to comment.