mirror of
https://github.com/gofiber/storage.git
synced 2025-10-13 20:33:56 +08:00
fix: clarify go version for testing
This commit is contained in:
4
.github/scripts/initialize-wrangler.sh
vendored
4
.github/scripts/initialize-wrangler.sh
vendored
@@ -6,6 +6,10 @@ export default { async fetch(Request, env) {
|
|||||||
|
|
||||||
const namespace = env.TEST_NAMESPACE1;
|
const namespace = env.TEST_NAMESPACE1;
|
||||||
|
|
||||||
|
if (Request.url === "http://localhost:8787/health") {
|
||||||
|
return new Response("Success");
|
||||||
|
}
|
||||||
|
|
||||||
if (Request.url === "http://localhost:8787/writeworkerskvkeyvaluepair") {
|
if (Request.url === "http://localhost:8787/writeworkerskvkeyvaluepair") {
|
||||||
const res = await Request.json();
|
const res = await Request.json();
|
||||||
const { key, val } = res;
|
const { key, val } = res;
|
||||||
|
20
.github/workflows/test-cloudflarekv.yml
vendored
20
.github/workflows/test-cloudflarekv.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Run CloudflareKV Tests
|
name: Tests CloudflareKV
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -9,18 +9,22 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-test:
|
Tests:
|
||||||
name: Build and Test
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go-version:
|
||||||
|
- 1.21.x
|
||||||
|
- 1.22.x
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: 1.22.x
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
@@ -30,10 +34,12 @@ jobs:
|
|||||||
- uses: JarvusInnovations/background-action@v1
|
- uses: JarvusInnovations/background-action@v1
|
||||||
name: Bootstrap System Under Test (SUT)
|
name: Bootstrap System Under Test (SUT)
|
||||||
with:
|
with:
|
||||||
run: .github/scripts/initialize-wrangler.sh
|
run: |
|
||||||
|
.github/scripts/initialize-wrangler.sh
|
||||||
|
npx wrangler dev
|
||||||
|
|
||||||
wait-on: |
|
wait-on: |
|
||||||
http://localhost:8787
|
http://localhost:8787/health
|
||||||
|
|
||||||
- name: Go to cloudflarekv directory
|
- name: Go to cloudflarekv directory
|
||||||
run: cd cloudflarekv
|
run: cd cloudflarekv
|
||||||
|
Reference in New Issue
Block a user