mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
39 lines
880 B
YAML
39 lines
880 B
YAML
name: Tests CloudflareKV
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths:
|
|
- 'cloudflarekv/**'
|
|
pull_request:
|
|
paths:
|
|
- 'cloudflarekv/**'
|
|
workflow_dispatch:
|
|
jobs:
|
|
Tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
- 1.24.x
|
|
- 1.25.x
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v6
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '20'
|
|
- name: Start Wrangler Dev
|
|
run: |
|
|
.github/scripts/initialize-wrangler.sh
|
|
cd cloudflarekv && npx wrangler dev &
|
|
npx wait-on tcp:8787
|
|
- name: Run Go Tests
|
|
run: cd cloudflarekv && go test ./... -v -race
|