feat: add server-side roadbook map actions #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |