-
Notifications
You must be signed in to change notification settings - Fork 50
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 #3161 from sourcenetwork/release/0.14.0
Release v0.14.0
- Loading branch information
Showing
698 changed files
with
50,996 additions
and
11,921 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,36 @@ | ||
# Copyright 2024 Democratized Data Foundation | ||
# | ||
# Use of this software is governed by the Business Source License | ||
# included in the file licenses/BSL.txt. | ||
# | ||
# As of the Change Date specified in that file, in accordance with | ||
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0, included in the file | ||
# licenses/APL.txt. | ||
|
||
name: 'Install SourceHub' | ||
|
||
description: 'Composite action to install sourcehub' | ||
|
||
inputs: | ||
ref: | ||
description: 'The branch, tag or SHA to install' | ||
required: true | ||
default: 'coverage_default' | ||
|
||
runs: | ||
# This is a composite action, setting this is required. | ||
using: "composite" | ||
|
||
steps: | ||
- name: Checkout sourcehub code into the directory | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: sourcenetwork/sourcehub | ||
path: _sourceHub | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Install SourceHub CLI | ||
working-directory: _sourceHub | ||
shell: bash # It's required for run step to specify shell in a composite action. | ||
run: make install |
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,70 @@ | ||
# Copyright 2024 Democratized Data Foundation | ||
# | ||
# Use of this software is governed by the Business Source License | ||
# included in the file licenses/BSL.txt. | ||
# | ||
# As of the Change Date specified in that file, in accordance with | ||
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0, included in the file | ||
# licenses/APL.txt. | ||
|
||
name: 'Setup DefraDB Composite' | ||
|
||
description: 'Composite action to setup defradb' | ||
|
||
runs: | ||
# This is a composite action, setting this is required. | ||
using: "composite" | ||
|
||
steps: | ||
- name: Setup Go environment explicitly | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
check-latest: true | ||
cache: false | ||
|
||
- name: Set cache paths | ||
id: cache-paths | ||
shell: bash # It's required for run step to specify shell in a composite action. | ||
run: | | ||
echo "GO_CACHE=$(go env GOCACHE)" >> "${GITHUB_OUTPUT}" | ||
echo "GO_MODCACHE=$(go env GOMODCACHE)" >> "${GITHUB_OUTPUT}" | ||
echo "CARGO_CACHE=~/.cargo" >> "${GITHUB_OUTPUT}" | ||
- name: Go cache/restore | ||
uses: actions/cache@v4 | ||
with: | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.mod') }} | ||
path: | | ||
${{ steps.cache-paths.outputs.GO_CACHE }} | ||
${{ steps.cache-paths.outputs.GO_MODCACHE }} | ||
- name: Cargo cache/restore | ||
# A very cool post: https://blog.arriven.wtf/posts/rust-ci-cache | ||
uses: actions/cache@v4 | ||
with: | ||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }} | ||
# Here are some directories we shouldn't forget about: | ||
# ~/.cargo/.* | ||
# ~/.cargo/bin/ | ||
# ~/.cargo/git/db/ | ||
# ~/.cargo/registry/cache/ | ||
# ~/.cargo/registry/index/ | ||
# **/target/*/*.d | ||
# **/target/*/*.rlib | ||
# **/target/*/.fingerprint | ||
# **/target/*/build | ||
# **/target/*/deps | ||
path: | | ||
${{ steps.cache-paths.outputs.CARGO_CACHE }} | ||
**/target/ | ||
- name: Restore modified time | ||
uses: chetan/git-restore-mtime-action@v2 | ||
|
||
- name: Build dependencies | ||
shell: bash # It's required for run step to specify shell in a composite action. | ||
run: | | ||
make deps:modules | ||
make deps:test |
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,44 @@ | ||
# Copyright 2024 Democratized Data Foundation | ||
# | ||
# Use of this software is governed by the Business Source License | ||
# included in the file licenses/BSL.txt. | ||
# | ||
# As of the Change Date specified in that file, in accordance with | ||
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0, included in the file | ||
# licenses/APL.txt. | ||
|
||
name: 'Test Coverage And Save Artifact' | ||
|
||
description: 'Composite action to run the test with coverage and save the report as artifact' | ||
|
||
inputs: | ||
coverage-artifact-name: | ||
description: 'Name of the artifact that will save coverage report' | ||
required: true | ||
default: 'coverage_default' | ||
|
||
coverage-path: | ||
description: 'Path to coverage file' | ||
required: false | ||
default: 'coverage.txt' | ||
|
||
runs: | ||
# This is a composite action, setting this is required. | ||
using: "composite" | ||
|
||
steps: | ||
- name: Run integration tests | ||
shell: bash # It's required for run step to specify shell in a composite action. | ||
run: make test:coverage | ||
|
||
- name: Upload coverage artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
# Make sure the name is always unique per job as artifacts are now immutable. | ||
# Note Issue: https://github.com/actions/upload-artifact/issues/478 | ||
# Solve: https://github.com/actions/upload-artifact/issues/478#issuecomment-1885470013 | ||
name: ${{ inputs.coverage-artifact-name }} | ||
path: ${{ inputs.coverage-path }} | ||
if-no-files-found: error | ||
retention-days: 7 |
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
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
Oops, something went wrong.