mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Align local version markers and GitHub Actions with Node 24, switch the default test entrypoint to the maintained Vitest runner, and replace pnpm-incompatible npm helpers in repo scripts. This also removes the obsolete AVA plus esm path and excludes disabled test fixtures from generic Vitest discovery so CI reflects the supported test surface.
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
# https://github.com/marketplace/actions/deploy-to-cloudflare-workers-with-wrangler
|
|
# https://github.com/cloudflare/wrangler-action
|
|
name: Deploy to Cloudflare Workers with Wrangler
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
name: Deploy
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Use Node.js 24
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: pnpm
|
|
|
|
- name: Setup PNPM
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10.12.1
|
|
run_install: false
|
|
|
|
- name: Write Wrangler configs
|
|
run: |
|
|
echo ${{ secrets.WRANGLER_ENV }} | base64 -d > doesitarm-default/.env
|
|
cat doesitarm-default/.env
|
|
echo ${{ secrets.WRANGLER_TOML }} | base64 -d > doesitarm-default/wrangler.toml
|
|
cat doesitarm-default/wrangler.toml
|
|
pnpm install
|
|
|
|
# Analytics Worker
|
|
echo ${{ secrets.ANALYTICS_WRANGER_TOML }} | base64 -d > workers/analytics/wrangler.toml
|
|
cat workers/analytics/wrangler.toml
|
|
pnpm install
|
|
|
|
- name: Deploy Default Worker
|
|
uses: cloudflare/wrangler-action@1.3.0
|
|
with:
|
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
|
workingDirectory: 'doesitarm-default'
|
|
|
|
- name: Deploy Analytics Worker
|
|
uses: cloudflare/wrangler-action@1.3.0
|
|
with:
|
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
|
workingDirectory: 'workers/analytics'
|