init
All checks were successful
Deployment / Deploy Storybook (push) Successful in 5m47s

This commit is contained in:
Benjamin Palko 2025-04-01 13:49:37 -04:00
commit a48f0603b2
79 changed files with 3589 additions and 0 deletions

37
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: PR Gate
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
checks:
name: Checks
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bun Setup
uses: oven-sh/setup-bun@v2
with:
bun-version-file: '.tool-versions'
- name: Install
run: bun install
- name: Lint
run: bun lint
- name: Sync
run: bun run build
- name: Svelte Check
run: bun check
- name: Prisma Check
run: bun prisma:validate
- name: Test
run: bun run test:unit

27
.github/workflows/deploy.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Deployment
on:
push:
branches:
- main
jobs:
theia-storybook:
name: Deploy Storybook
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ env.GITHUB_SERVER_URL }}
username: ${{ env.GITHUB_REPOSITORY_OWNER }}
password: ${{ secrets.NPM_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
file: Dockerfile.storybook
tags: git.palko.ca/${{ env.GITHUB_REPOSITORY }}-storybook:latest