This commit is contained in:
Benjamin Palko 2025-03-30 13:03:33 -04:00 committed by Benjamin Palko
commit bff3e89539
49 changed files with 2790 additions and 0 deletions

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

@ -0,0 +1,46 @@
name: Deployment
on:
push:
branches:
- main
jobs:
deploy-app:
name: Deploy ${{ env.GITHUB_REPOSITORY }}
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
tags: git.palko.ca/${{ env.GITHUB_REPOSITORY }}:latest
deploy-storybook:
name: Deploy ${{ env.GITHUB_REPOSITORY }}
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

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

@ -0,0 +1,27 @@
name: PR Gate
on:
pull_request:
branches: ['*']
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: Build
run: bun run build
- name: Svelte Check
run: bun check
- name: Prisma Check
run: bun prisma:validate
- name: Test
run: bun run test:unit