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;
|
||||
|
||||
if (Request.url === "http://localhost:8787/health") {
|
||||
return new Response("Success");
|
||||
}
|
||||
|
||||
if (Request.url === "http://localhost:8787/writeworkerskvkeyvaluepair") {
|
||||
const res = await Request.json();
|
||||
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:
|
||||
push:
|
||||
@@ -9,18 +9,22 @@ on:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
name: Build and Test
|
||||
Tests:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go-version:
|
||||
- 1.21.x
|
||||
- 1.22.x
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.22.x
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
@@ -30,10 +34,12 @@ jobs:
|
||||
- uses: JarvusInnovations/background-action@v1
|
||||
name: Bootstrap System Under Test (SUT)
|
||||
with:
|
||||
run: .github/scripts/initialize-wrangler.sh
|
||||
run: |
|
||||
.github/scripts/initialize-wrangler.sh
|
||||
npx wrangler dev
|
||||
|
||||
wait-on: |
|
||||
http://localhost:8787
|
||||
http://localhost:8787/health
|
||||
|
||||
- name: Go to cloudflarekv directory
|
||||
run: cd cloudflarekv
|
||||
|
Reference in New Issue
Block a user