Skip to content

Commit

Permalink
refactor: added tests for rpc module (#1266)
Browse files Browse the repository at this point in the history
* refactor: added tests for RPC module

* Revert "refactor: added tests for RPC module"

This reverts commit bac5b3b.

* reafctor: added tests for rpc module using httpstest servers

* ci: updated artifact version for binary downloads and uploads

* ci: fixed ci by updateing action versions

* reafctor: replaced ts.cancel() with  t.Cleanup(func() { ts1.Close() })
  • Loading branch information
Yashk767 authored Feb 26, 2025
1 parent c12a45a commit 0243b54
Show file tree
Hide file tree
Showing 4 changed files with 333 additions and 13 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Setup Go
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=coverage.txt -service=github
- uses: bissolli/gh-action-persist-workspace@v1
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: persist

Expand All @@ -75,7 +75,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"

Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
mv razor_go.linux-amd64.tar.gz ../../
- name: Upload AMD Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: razor_go.linux-amd64.tar.gz
path: razor_go.linux-amd64.tar.gz
Expand All @@ -117,7 +117,7 @@ jobs:
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"

Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
mv razor_go.linux-arm64.tar.gz ../../
- name: Upload ARM Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: razor_go.linux-arm64.tar.gz
path: razor_go.linux-arm64.tar.gz
Expand All @@ -166,17 +166,17 @@ jobs:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Download Artifacts AMD
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: razor_go.linux-amd64.tar.gz

- name: Download Artifacts ARM
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: razor_go.linux-arm64.tar.gz

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Setup Go
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=coverage.txt -service=github
- uses: bissolli/gh-action-persist-workspace@v1
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: persist

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Setup Go
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=coverage.txt -service=github
- uses: bissolli/gh-action-persist-workspace@v1
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: persist

Expand Down
Loading

0 comments on commit 0243b54

Please sign in to comment.