1
0
mirror of https://github.com/zws-im/zws.git synced 2026-04-24 19:03:57 +02:00
Files
Jonah Snider f521de5534 feat: replace Vercel with Cloudflare (#965)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-16 12:53:59 -07:00

41 lines
1.4 KiB
YAML

name: CI
on: [push, pull_request]
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout Git repository
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 'lts/*'
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies with Bun
run: bun install --frozen-lockfile
- name: Cache Next.js
uses: actions/cache@v5
with:
# See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node
path: |
${{ github.workspace }}/apps/web/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/bun.lockb') }}-
- name: Build and test
run: bun run test
env:
API_URL: https://api.zws.im
WEBSITE_URL: https://zws.im