Skip to content

refactor(qdl): resolve or throw from connect() #69

refactor(qdl): resolve or throw from connect()

refactor(qdl): resolve or throw from connect() #69

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.ref == 'refs/heads/master' && github.run_id || github.head_ref || github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun lint
- run: bun test
- run: bun run build
demo:
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun link
- run: cd demo; bun install
- run: cd demo; bun check
- run: cd demo; bun run build
- name: Upload artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-pages-artifact@v3
with:
path: ./demo/dist
deploy:
if: github.ref == 'refs/heads/master'
needs:
- demo
- test
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-24.04
timeout-minutes: 1
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4