-
Notifications
You must be signed in to change notification settings - Fork 53
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 #860 from sourcenetwork/release/0.3.1
Release v0.3.1
- Loading branch information
Showing
399 changed files
with
17,564 additions
and
5,268 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,48 @@ | ||
name: Detect Change Workflow | ||
|
||
on: | ||
pull_request: | ||
|
||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
detect-change: | ||
name: Detect change job | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code into the directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Go environment explicitly | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
check-latest: true | ||
|
||
- name: Build dependencies | ||
run: | | ||
make deps:modules | ||
make deps:test | ||
# We need SSH Authorization because change detection needs use `ls-remote` like: | ||
# git ls-remote [email protected]:sourcenetwork/defradb.git refs/heads/develop | ||
- uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Run detection for changes | ||
run: make test:changes | ||
|
||
## Uncomment to enable ability to SSH into the runner. | ||
#- name: Setup upterm ssh session for debugging | ||
# uses: lhotari/action-upterm@v1 | ||
# with: | ||
# limit-access-to-actor: true | ||
# limit-access-to-users: shahzadlone |
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,34 @@ | ||
name: Run Tests Workflow | ||
|
||
on: [push] | ||
|
||
jobs: | ||
run-tests: | ||
name: Run tests job | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code into the directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Go environment explicitly | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
check-latest: true | ||
|
||
- name: Build dependencies | ||
run: | | ||
make deps:modules | ||
make deps:test | ||
- name: Build binary | ||
run: make build | ||
|
||
# This is to ensure tests pass with a running server. | ||
- name: Start server from binary | ||
run: ./build/defradb start & | ||
|
||
- name: Run the tests, showing name of each test | ||
run: make test: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,50 @@ | ||
name: Start Binary Workflow | ||
|
||
on: | ||
pull_request: | ||
|
||
push: | ||
tags: | ||
- v* | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
start-binary: | ||
name: Start binary job | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout code into the directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Go environment explicitly | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.18" | ||
check-latest: true | ||
|
||
- name: Build modules | ||
run: make deps:modules | ||
|
||
- name: Build binary | ||
run: make build | ||
|
||
- name: Attempt to start binary | ||
run: | | ||
./build/defradb start & | ||
sleep 5 | ||
- name: Check if binary is still running | ||
run: | | ||
FOUND=$(pgrep -c "defradb"); | ||
echo "Process(es) we found = [${FOUND}]"; | ||
if [[ ${FOUND} == 0 ]]; then | ||
echo "DefraDB start command failed."; | ||
exit 1; | ||
else | ||
echo "DefraDB running."; | ||
fi |
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,28 @@ | ||
name: Validate Title Workflow | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- edited | ||
- opened | ||
- reopened | ||
- synchronize | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
validate-title: | ||
name: Validate title job | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout code into the directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Ensure the scripts are not broken | ||
run: make test:scripts | ||
|
||
- name: Run the validation script on the title | ||
run: ./tools/scripts/validate-conventional-style.sh "${{ github.event.pull_request.title }}" |
Oops, something went wrong.