-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54f504c
commit c0b4d83
Showing
12 changed files
with
202 additions
and
3 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,19 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
# Workflow files stored in the | ||
# default location of `.github/workflows` | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
time: "13:00" | ||
timezone: "Asia/Tokyo" | ||
reviewers: | ||
- "newapplesho" | ||
commit-message: | ||
prefix: "ci" |
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,31 @@ | ||
name: ci | ||
|
||
run-name: "[${{ github.event.repository.name }}] Check: ${{ github.event_name == 'schedule' && 'scheduled' || github.event.pull_request.title }}" | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
schedule: | ||
- cron: "0 21 * * *" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
smalltalk: [ Pharo64-7.0, Pharo64-8.0, Pharo64-9.0, Pharo64-10, Pharo64-11, Pharo64-12 ] | ||
name: ${{ matrix.smalltalk }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Smalltalk CI | ||
uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-image: ${{ matrix.smalltalk }} | ||
- name: Load Image and Run Tests | ||
run: smalltalkci -s ${{ matrix.smalltalk }} .smalltalk.ston | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
timeout-minutes: 15 |
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
19 changes: 19 additions & 0 deletions
19
pharo-repository/Twilio-REST-Core-Tests/TwilioAccountsTest.class.st
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,19 @@ | ||
" | ||
A TwilioAccountsTest is a test class for testing the behavior of TwilioAccounts | ||
" | ||
Class { | ||
#name : #TwilioAccountsTest, | ||
#superclass : #TwilioInstanceResourceTest, | ||
#category : #'Twilio-REST-Core-Tests-Base' | ||
} | ||
|
||
{ #category : #'accessing - defaults' } | ||
TwilioAccountsTest >> defaultTestClass [ | ||
^ TwilioAccounts | ||
] | ||
|
||
{ #category : #tests } | ||
TwilioAccountsTest >> testResourceUrl [ | ||
|
||
self assert: (instance resourceUrl asString beginsWith: 'https://api.twilio.com/2010-04-01/Accounts') | ||
] |
19 changes: 19 additions & 0 deletions
19
pharo-repository/Twilio-REST-Core-Tests/TwilioCallsTest.class.st
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,19 @@ | ||
" | ||
A TwilioCallsTest is a test class for testing the behavior of TwilioCalls | ||
" | ||
Class { | ||
#name : #TwilioCallsTest, | ||
#superclass : #TwilioInstanceResourceTest, | ||
#category : #'Twilio-REST-Core-Tests-Base' | ||
} | ||
|
||
{ #category : #'accessing - defaults' } | ||
TwilioCallsTest >> defaultTestClass [ | ||
^ TwilioCalls | ||
] | ||
|
||
{ #category : #tests } | ||
TwilioCallsTest >> testResourceUrl [ | ||
self assert: (instance resourceUrl asString beginsWith: 'https://api.twilio.com/2010-04-01/Accounts'). | ||
self assert: (instance resourceUrl asString endsWith: 'Calls.json') | ||
] |
39 changes: 39 additions & 0 deletions
39
pharo-repository/Twilio-REST-Core-Tests/TwilioInstanceResourceTest.class.st
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,39 @@ | ||
" | ||
A TwilioInstanceResourceTest is a test class for testing the behavior of TwilioInstanceResource | ||
" | ||
Class { | ||
#name : #TwilioInstanceResourceTest, | ||
#superclass : #TestCase, | ||
#instVars : [ | ||
'instance' | ||
], | ||
#category : #'Twilio-REST-Core-Tests-Base' | ||
} | ||
|
||
{ #category : #testing } | ||
TwilioInstanceResourceTest class >> isAbstract [ | ||
^ self == TwilioInstanceResourceTest | ||
] | ||
|
||
{ #category : #'accessing - defaults' } | ||
TwilioInstanceResourceTest >> defaultTestClass [ | ||
^ self subclassResponsibility | ||
] | ||
|
||
{ #category : #running } | ||
TwilioInstanceResourceTest >> setUp [ | ||
super setUp. | ||
instance := self defaultTestClass new | ||
|
||
] | ||
|
||
{ #category : #running } | ||
TwilioInstanceResourceTest >> tearDown [ | ||
instance := nil. | ||
super tearDown | ||
] | ||
|
||
{ #category : #tests } | ||
TwilioInstanceResourceTest >> testResourceUrl [ | ||
self subclassResponsibility | ||
] |
20 changes: 20 additions & 0 deletions
20
pharo-repository/Twilio-REST-Core-Tests/TwilioMessagesTest.class.st
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,20 @@ | ||
" | ||
A TwilioMessagesTest is a test class for testing the behavior of TwilioMessages | ||
" | ||
Class { | ||
#name : #TwilioMessagesTest, | ||
#superclass : #TwilioInstanceResourceTest, | ||
#category : #'Twilio-REST-Core-Tests-Base' | ||
} | ||
|
||
{ #category : #'accessing - defaults' } | ||
TwilioMessagesTest >> defaultTestClass [ | ||
^ TwilioMessages | ||
] | ||
|
||
{ #category : #tests } | ||
TwilioMessagesTest >> testResourceUrl [ | ||
|
||
self assert: (instance resourceUrl asString beginsWith: 'https://api.twilio.com/2010-04-01/Accounts'). | ||
self assert: (instance resourceUrl asString endsWith: 'Messages.json') | ||
] |
20 changes: 20 additions & 0 deletions
20
pharo-repository/Twilio-REST-Core-Tests/TwilioRecordsTest.class.st
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,20 @@ | ||
" | ||
A TwilioRecordsTest is a test class for testing the behavior of TwilioRecords | ||
" | ||
Class { | ||
#name : #TwilioRecordsTest, | ||
#superclass : #TwilioInstanceResourceTest, | ||
#category : #'Twilio-REST-Core-Tests-Base' | ||
} | ||
|
||
{ #category : #'accessing - defaults' } | ||
TwilioRecordsTest >> defaultTestClass [ | ||
^ TwilioRecords | ||
] | ||
|
||
{ #category : #tests } | ||
TwilioRecordsTest >> testResourceUrl [ | ||
|
||
self assert: (instance resourceUrl asString beginsWith: 'https://api.twilio.com/2010-04-01/Accounts'). | ||
self assert: (instance resourceUrl asString endsWith: 'Usage/Records.json') | ||
] |
20 changes: 20 additions & 0 deletions
20
pharo-repository/Twilio-REST-Core-Tests/TwilioUsageTest.class.st
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,20 @@ | ||
" | ||
A TwilioUsageTest is a test class for testing the behavior of TwilioUsage | ||
" | ||
Class { | ||
#name : #TwilioUsageTest, | ||
#superclass : #TwilioInstanceResourceTest, | ||
#category : #'Twilio-REST-Core-Tests-Base' | ||
} | ||
|
||
{ #category : #'accessing - defaults' } | ||
TwilioUsageTest >> defaultTestClass [ | ||
^ TwilioUsage | ||
] | ||
|
||
{ #category : #test } | ||
TwilioUsageTest >> testResourceUrl [ | ||
|
||
self assert: (instance resourceUrl asString beginsWith: 'https://api.twilio.com/2010-04-01/Accounts'). | ||
self assert: (instance resourceUrl asString endsWith: 'Usage.json') | ||
] |
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 @@ | ||
Package { #name : #'Twilio-REST-Core-Tests' } |