Skip to content

Commit b1853c4

Browse files
authored
Merge pull request #4 from securenative/dev
Align SDK
2 parents 0049a20 + a300442 commit b1853c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1515
-671
lines changed

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- dev
8+
- dev-*
9+
10+
jobs:
11+
ci:
12+
runs-on: ubuntu-latest
13+
name: CI
14+
steps:
15+
- name: Notify slack success
16+
if: success()
17+
id: slack # IMPORTANT: reference this step ID value in future Slack steps
18+
env:
19+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
20+
uses: voxmedia/github-action-slack-notify-build@v1.1.1
21+
with:
22+
channel: github-actions
23+
status: STARTING
24+
color: warning
25+
26+
- uses: actions/checkout@v1
27+
- uses: actions/setup-ruby@v1
28+
with:
29+
ruby-version: 2.6.x
30+
- name: Install dependencies
31+
run: |
32+
gem install bundler
33+
bundler install
34+
- name: Run tests
35+
run: bundler exec rspec
36+
37+
- name: Notify slack success
38+
if: success()
39+
env:
40+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
41+
uses: voxmedia/github-action-slack-notify-build@v1.1.1
42+
with:
43+
message_id: ${{ steps.slack.outputs.message_id }}
44+
channel: github-actions
45+
status: SUCCESS
46+
color: good
47+
48+
- name: Notify slack fail
49+
if: failure()
50+
env:
51+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
52+
uses: voxmedia/github-action-slack-notify-build@v1.1.1
53+
with:
54+
message_id: ${{ steps.slack.outputs.message_id }}
55+
channel: github-actions
56+
status: FAILED
57+
color: danger

.github/workflows/publish.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
name: Publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Notify slack success
13+
if: success()
14+
id: slack # IMPORTANT: reference this step ID value in future Slack steps
15+
env:
16+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
17+
uses: voxmedia/github-action-slack-notify-build@v1.1.1
18+
with:
19+
channel: github-actions
20+
status: STARTING
21+
color: warning
22+
23+
- uses: actions/checkout@v2
24+
- name: Set up Ruby 2.6
25+
uses: actions/setup-ruby@v1
26+
with:
27+
version: 2.6.x
28+
29+
- name: Publish to RubyGems
30+
run: |
31+
mkdir -p $HOME/.gem
32+
touch $HOME/.gem/credentials
33+
chmod 0600 $HOME/.gem/credentials
34+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
35+
gem build *.gemspec
36+
gem push *.gem
37+
env:
38+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
39+
40+
- name: Notify slack success
41+
if: success()
42+
env:
43+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
44+
uses: voxmedia/github-action-slack-notify-build@v1.1.1
45+
with:
46+
message_id: ${{ steps.slack.outputs.message_id }}
47+
channel: github-actions
48+
status: SUCCESS
49+
color: good
50+
51+
- name: Notify slack fail
52+
if: failure()
53+
env:
54+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
55+
uses: voxmedia/github-action-slack-notify-build@v1.1.1
56+
with:
57+
message_id: ${{ steps.slack.outputs.message_id }}
58+
channel: github-actions
59+
status: FAILED
60+
color: danger

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Testing
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
- '!master'
8+
9+
jobs:
10+
test:
11+
name: Testing
12+
runs-on: ubuntu-18.04
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: actions/setup-ruby@v1
16+
with:
17+
ruby-version: 2.6.x
18+
- name: Install dependencies
19+
run: |
20+
gem install bundler
21+
bundler install
22+
- name: Run tests
23+
run: bundler exec rspec
24+
25+
- name: Notify slack success
26+
if: success()
27+
env:
28+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
29+
uses: voxmedia/github-action-slack-notify-build@v1.1.1
30+
with:
31+
message_id: ${{ steps.slack.outputs.message_id }}
32+
channel: github-actions
33+
status: SUCCESS
34+
color: good
35+
36+
- name: Notify slack fail
37+
if: failure()
38+
env:
39+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
40+
uses: voxmedia/github-action-slack-notify-build@v1.1.1
41+
with:
42+
message_id: ${{ steps.slack.outputs.message_id }}
43+
channel: github-actions
44+
status: FAILED
45+
color: danger

.rakeTasks

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Settings><!--This file was automatically generated by Ruby plugin.
3+
You are allowed to:
4+
1. Remove rake task
5+
2. Add existing rake tasks
6+
To add existing rake tasks automatically delete this file and reload the project.
7+
--><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
language: ruby
3+
cache: bundler
4+
rvm:
5+
- 2.7.1
6+
before_install: gem install bundler -v 2.1.2

Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ source "https://rubygems.org"
33
gemspec
44
gem "rspec"
55
gem "rake"
6-
gem "httpclient"
6+
gem "httpclient"
7+
gem "parseconfig"
8+
gem "webmock"
9+
gem "codecov", :require => false, :group => :test

Gemfile.lock

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
PATH
22
remote: .
33
specs:
4-
securenative (0.1.5)
4+
securenative (0.1.16)
55

66
GEM
77
remote: https://rubygems.org/
88
specs:
9+
addressable (2.7.0)
10+
public_suffix (>= 2.0.2, < 5.0)
11+
codecov (0.1.17)
12+
json
13+
simplecov
14+
url
15+
crack (0.4.3)
16+
safe_yaml (~> 1.0.0)
917
diff-lcs (1.3)
18+
docile (1.3.2)
19+
hashdiff (1.0.1)
1020
httpclient (2.8.3)
21+
json (2.3.0)
22+
parseconfig (1.0.8)
23+
public_suffix (4.0.5)
1124
rake (12.3.3)
1225
rspec (3.8.0)
1326
rspec-core (~> 3.8.0)
@@ -22,16 +35,29 @@ GEM
2235
diff-lcs (>= 1.2.0, < 2.0)
2336
rspec-support (~> 3.8.0)
2437
rspec-support (3.8.2)
38+
safe_yaml (1.0.5)
39+
simplecov (0.18.5)
40+
docile (~> 1.1)
41+
simplecov-html (~> 0.11)
42+
simplecov-html (0.12.2)
43+
url (0.3.2)
44+
webmock (3.8.3)
45+
addressable (>= 2.3.6)
46+
crack (>= 0.3.2)
47+
hashdiff (>= 0.4.0, < 2.0.0)
2548

2649
PLATFORMS
2750
ruby
2851

2952
DEPENDENCIES
3053
bundler (~> 2.0)
54+
codecov
3155
httpclient
56+
parseconfig
3257
rake
3358
rspec
3459
securenative!
60+
webmock
3561

3662
BUNDLED WITH
37-
2.1.0.pre.1
63+
2.1.4

0 commit comments

Comments
 (0)