forked from pharo-rdbms/Pharo-SQLite3
-
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.
Add GitHub Actions to test the integration with Glorp
- Loading branch information
Showing
9 changed files
with
87 additions
and
11 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,16 @@ | ||
SmalltalkCISpec { | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'SQLite3', | ||
#directory : 'src', | ||
#load : [ 'CI' ], | ||
#platforms : [ #pharo ] | ||
} | ||
], | ||
#postLoading : [ | ||
'scripts/setupSQLite3AsDatabaseDriver.st' | ||
], | ||
#testing : { | ||
#packages : [ 'Glorp-Integration-Tests' ] | ||
} | ||
} |
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 @@ | ||
*.st linguist-language=Smalltalk |
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,33 @@ | ||
name: GLORP Integration Tests | ||
|
||
on: [push,pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
smalltalk: [ Pharo64-8.0 ] | ||
name: ${{ matrix.smalltalk }} + ${{ matrix.rdbms }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install SQLite3 | ||
run: ./scripts/install-SQLite3.sh | ||
env: | ||
RDBMS: ${{ matrix.rdbms }} | ||
- name: Set up Smalltalk CI | ||
uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-version: ${{ matrix.smalltalk }} | ||
- name: Load Image and Run Integration Tests | ||
run: smalltalkci -s ${{ matrix.smalltalk }} .GLORP.ston | ||
timeout-minutes: 15 | ||
env: | ||
RDBMS: ${{ matrix.rdbms }} | ||
- run: echo "::set-env name=SCI_COVERAGE_FILE_LOCATION::${HOME}/.smalltalkCI/_builds/coveralls_results.json" | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ${{ env.SCI_COVERAGE_FILE_LOCATION }} |
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,13 @@ | ||
name: Shellcheck | ||
|
||
on: [push,pull_request] | ||
|
||
jobs: | ||
shellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Run Shellcheck | ||
uses: reviewdog/action-shellcheck@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo apt-get --assume-yes --no-install-recommends install sqlite3 | ||
sqlite3 -version | ||
ln -s /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 libsqlite3.so |
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,8 @@ | ||
DatabaseAccessor classForThisPlatform DefaultDriver: SQLite3Driver. | ||
GlorpDatabaseLoginResource defaultLogin: | ||
(Login new | ||
database: UDBCSQLite3Platform new; | ||
host: SmalltalkImage current imageDirectory fullName; | ||
databaseName: 'sodbxtestu.db'; | ||
password: ''; | ||
yourself). |
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