Skip to content

simplifying jokes service because icanhazdadjoke supports content neg… #6

simplifying jokes service because icanhazdadjoke supports content neg…

simplifying jokes service because icanhazdadjoke supports content neg… #6

name: 🚀 Deploy Scheduler
on:
push:
branches:
- main
paths-ignore:
- 'apps/app/**'
pull_request: {}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: write
contents: read
jobs:
lint:
name: ⬣ ESLint
runs-on: ubuntu-22.04
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🍞 Setup Bun
uses: oven-sh/setup-bun@v1
- name: 📥 Download deps
run: bun install --frozenLockfile
- name: 🔬 Lint
run: bun lint
typecheck:
name: ʦ TypeScript
runs-on: ubuntu-22.04
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🍞 Setup Bun
uses: oven-sh/setup-bun@v1
- name: 📥 Download deps
run: bun install --frozenLockfile
- name: 🔎 Type check
run: bun typecheck
working-directory: apps/scheduler
deploy:
name: 🚀 Deploy
runs-on: ubuntu-22.04
needs: [lint, typecheck]
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🚀 Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: 'apps/scheduler'