-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
408 additions
and
63 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
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 |
---|---|---|
|
@@ -9,7 +9,11 @@ permissions: | |
contents: write | ||
|
||
jobs: | ||
testing: | ||
uses: ./.github/workflows/test-unit-and-e2e.yml | ||
|
||
release: | ||
needs: [ testing ] | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -43,8 +47,8 @@ jobs: | |
- name: Build binary | ||
run: make release | ||
|
||
- name: ls build | ||
run: ls build | ||
- name: ls ./build | ||
run: ls ./build | ||
|
||
- name: Upload the artifacts | ||
uses: skx/[email protected] | ||
|
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,71 @@ | ||
name: Unit testing and E2E testing | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
paths: | ||
- '**' | ||
- '!README.md' | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: | ||
- '**' | ||
- '!README.md' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
testing: | ||
name: Unit testing and E2E testing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
cache: 'pnpm' | ||
cache-dependency-path: 'ts/package.json' | ||
|
||
- name: Install ts dependencies | ||
run: cd ts && pnpm install | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.23' | ||
cache-dependency-path: "go.sum" | ||
|
||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v3 | ||
|
||
- name: Unit testing | ||
run: make protoc && make test | ||
|
||
- name: Build binary | ||
run: make build | ||
|
||
- name: Upload binary | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: live-pprof | ||
path: build/live-pprof | ||
compression-level: 9 | ||
retention-days: 10 | ||
|
||
- name: E2E testing with binary | ||
run: make test-e2e | ||
|
||
- name: Build binary for release | ||
run: make clean && make release | ||
|
||
- name: E2E testing with binary for release | ||
run: make test-e2e | ||
|
||
|
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.