Skip to content

feat: add server-side roadbook map actions #7

feat: add server-side roadbook map actions

feat: add server-side roadbook map actions #7

Workflow file for this run

name: CI Cloudflare Worker
on:
push:
branches: ['**']
paths:
- 'cloudflare/**'
- '.github/workflows/ci_cloudflare.yml'
# The test script relies on backend test script, so we should trigger if that changes too,
# but strictly speaking the user asked for "cf tests" so changes in cloudflare dir is primary.
# Including backend script path is safer to ensure tests still pass if the test script changes.
- 'backend/scripts/backend_test.sh'
jobs:
cloudflare_test:
name: Cloudflare Worker Integration Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
cd cloudflare
npm install
- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq
- name: Make scripts executable
run: chmod +x cloudflare/test_local.sh backend/scripts/backend_test.sh
- name: Run local integration tests
run: ./cloudflare/test_local.sh