-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jairus/hyp-2207-create-hypermode-cli
- Loading branch information
Showing
590 changed files
with
59,274 additions
and
1,820 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Validating CODEOWNERS rules …
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,4 +1,4 @@ | ||
# CODEOWNERS info: https://help.github.com/en/articles/about-code-owners | ||
# Owners are automatically requested for review for PRs that changes code | ||
# that they own. | ||
* @hypermodeAI/runtime | ||
# Owners are automatically requested for review for PRs that changes code that they own. | ||
|
||
* @hypermodeinc/modus |
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,49 @@ | ||
# This workflow will lint all Go projects in the repository | ||
name: ci-go-lint | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
jobs: | ||
get-dirs: | ||
if: github.event_name == 'pull_request' | ||
name: find go projects | ||
runs-on: ubuntu-latest | ||
outputs: | ||
dirs: ${{ steps.get-dirs.outputs.dirs }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Search for go.mod files | ||
id: get-dirs | ||
run: echo "dirs=$(find . -name 'go.mod' -exec dirname {} \; | jq -Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT} | ||
|
||
go-lint: | ||
needs: get-dirs | ||
if: github.event_name == 'pull_request' | ||
name: lint | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
dir: ${{ fromJson(needs.get-dirs.outputs.dirs) }} | ||
defaults: | ||
run: | ||
working-directory: ${{ matrix.dir }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
cache-dependency-path: "${{ matrix.dir }}/go.sum" | ||
go-version-file: "${{ matrix.dir }}/go.mod" | ||
- name: Generate Code | ||
run: go generate ./... | ||
- name: Run Linter | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
working-directory: ${{ matrix.dir }} | ||
version: latest | ||
args: --timeout=10m |
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,51 @@ | ||
# This workflow will test all Go projects in the repository | ||
name: ci-go-test | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- ready_for_review | ||
jobs: | ||
get-dirs: | ||
if: github.event_name == 'pull_request' | ||
name: find go projects | ||
runs-on: ubuntu-latest | ||
outputs: | ||
dirs: ${{ steps.get-dirs.outputs.dirs }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Search for go.mod files | ||
id: get-dirs | ||
run: echo "dirs=$(find . -name 'go.mod' -exec dirname {} \; | jq -Rsc 'split("\n")[:-1]')" >> ${GITHUB_OUTPUT} | ||
|
||
go-test: | ||
needs: get-dirs | ||
name: test | ||
runs-on: warp-ubuntu-latest-x64-4x | ||
strategy: | ||
matrix: | ||
dir: ${{ fromJson(needs.get-dirs.outputs.dirs) }} | ||
defaults: | ||
run: | ||
working-directory: ${{ matrix.dir }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
cache-dependency-path: "${{ matrix.dir }}/go.sum" | ||
go-version-file: "${{ matrix.dir }}/go.mod" | ||
- name: Generate Code | ||
run: go generate ./... | ||
- name: Run Unit Tests | ||
run: | | ||
go install github.com/jstemmer/go-junit-report/v2@latest | ||
go test -v -race 2>&1 ./... | go-junit-report -set-exit-code -iocopy -out report.xml | ||
- name: Generate Test Summary | ||
if: always() | ||
uses: test-summary/action@v2 | ||
with: | ||
paths: "${{ matrix.dir }}/report.xml" |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.