-
Notifications
You must be signed in to change notification settings - Fork 27
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
Showing
132 changed files
with
2,819 additions
and
3,337 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,121 @@ | ||
name: Run All Checks | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
test-builds: | ||
if: github.event_name == 'pull_request' | ||
runs-on: ubuntu-latest | ||
name: Run Build Tests | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: onsonr/sonr | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
check-latest: true | ||
- name: Run Sonrd Build | ||
run: make build | ||
- name: Run Hway Build | ||
run: make build-hway | ||
- name: Run Motr Build | ||
run: make build-motr | ||
|
||
test-unit: | ||
if: github.event_name == 'pull_request' | ||
runs-on: ubuntu-latest | ||
name: Run Unit Tests | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: onsonr/sonr | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
check-latest: true | ||
- run: make test-unit | ||
|
||
test-race: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'merge_group' | ||
name: Run Race Tests | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: onsonr/sonr | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
check-latest: true | ||
- run: make test-race | ||
|
||
test-cover: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'merge_group' | ||
name: Run Coverage Tests | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: onsonr/sonr | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
check-latest: true | ||
- run: make test-cover | ||
|
||
goreleaser-check: | ||
if: github.event_name == 'merge_group' | ||
runs-on: ubuntu-latest | ||
name: Check GoReleaser Config | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: onsonr/sonr | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.23" | ||
check-latest: true | ||
|
||
- name: Check GoReleaser Config | ||
uses: goreleaser/goreleaser-action@v6 | ||
with: | ||
distribution: goreleaser-pro | ||
version: latest | ||
args: check | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} | ||
|
||
- name: GoReleaser Dry Run | ||
uses: goreleaser/goreleaser-action@v6 | ||
with: | ||
distribution: goreleaser-pro | ||
version: latest | ||
args: release --snapshot --clean --skip=publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name: PR Labeler | ||
on: | ||
pull_request: | ||
types: [opened] | ||
types: [opened, edited] | ||
|
||
permissions: | ||
contents: read | ||
|
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
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 |
---|---|---|
|
@@ -61,9 +61,6 @@ override.tf.json | |
.terraformrc | ||
terraform.rc | ||
|
||
Taskfile.yml | ||
|
||
!deploy/**/Taskfile.yml | ||
|
||
# Misc | ||
.DS_Store | ||
|
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.