-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from sqlitebrowser/integration_tests_v1
Integration tests and matching GitHub actions workflow
- Loading branch information
Showing
4 changed files
with
828 additions
and
114 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,53 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Install NodeJS 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
# Build and start the DBHub.io server daemons | ||
- name: Checkout the DBHub.io source code | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'sqlitebrowser/dbhub.io' | ||
path: daemons | ||
|
||
- name: Build the DBHub.io daemons | ||
run: cd daemons; yarn docker:build | ||
|
||
- name: Update the daemon config file | ||
run: cd daemons; sed -i 's/bind_address = ":9444"/bind_address = "0.0.0.0:9444"/' docker/config.toml | ||
|
||
- name: Start the DBHub.io daemons | ||
run: cd daemons; docker run -itd --rm --name dbhub-build --net host dbhub-build:latest && sleep 5 | ||
|
||
# Build and test the go-dbhub library | ||
- name: Checkout go-dbhub library source code | ||
uses: actions/checkout@v4 | ||
with: | ||
path: main | ||
|
||
- name: Set up Go for go-dbhub library | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
|
||
- name: Build the go-dbhub library | ||
run: cd main; go build -v | ||
|
||
- name: Test the go-dbhub library | ||
run: cd main; go test -v |
Oops, something went wrong.