2
0

📦 Upgrade packages

This commit is contained in:
Baptiste Arnaud
2022-11-02 19:45:46 +01:00
committed by GitHub
parent 48285479cc
commit 2c66c59dfc
64 changed files with 2518 additions and 3158 deletions

View File

@ -1,13 +0,0 @@
on:
pull_request:
types: [opened, edited, ready_for_review, synchronize]
jobs:
move-linked-issues:
runs-on: ubuntu-latest
name: Move linked issues to In Review column
steps:
- uses: rharter/github-move-linked-project-cards@v0.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
column: Reviewing 👀

View File

@ -1,41 +0,0 @@
name: Playwright Tests
on:
deployment_status:
jobs:
test-builder:
timeout-minutes: 60
runs-on: ubuntu-latest
if: ${{ github.event.deployment_status.state == 'success' && contains(github.event.deployment_status.environment, 'builder')}}
steps:
- name: Log Info
run: echo ${{ github.event.deployment_status.target_url }} && echo ${{ github.event.deployment }} && echo ${{ github.event.deployment_status.environment }}
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Build dependencies
run: pnpm turbo run build --filter="builder^..."
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run tests
working-directory: ./apps/builder
run: pnpm test
env:
PLAYWRIGHT_BUILDER_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}
SMTP_HOST: smtp.ethereal.email
SMTP_PORT: 587
SMTP_SECURE: false
SMTP_USERNAME: tobin.tillman65@ethereal.email
SMTP_PASSWORD: Ty9BcwCBrK6w8AG2hx
STRIPE_TEST_PUBLIC_KEY: pk_test_fYwf5fyL66hiRIkFVcpStukl00K1MTPPmG
STRIPE_TEST_SECRET_KEY: ${{ secrets.STRIPE_TEST_SECRET_KEY }}
ENCRYPTION_SECRET: ${{ secrets.ENCRYPTION_SECRET }}
- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
with:
name: playwright-results
path: ./apps/builder/playwright-report

View File

@ -1,4 +1,4 @@
name: Publish Docker images
name: Build Docker images
on:
create:
@ -9,32 +9,34 @@ on:
branches: [main]
jobs:
push_builder:
name: Builder
build:
runs-on: ubuntu-latest
strategy:
matrix:
app: ['builder', 'viewer']
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Extract Builder meta
id: builder-meta
- name: Extract existing image metadata
id: ${{ matrix.app }}-meta
uses: docker/metadata-action@v4
with:
images: baptistearno/typebot-builder
images: baptistearno/typebot-${{ matrix.app }}
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
- if: github.event_name != 'pull_request'
name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push builder image
- name: Build image
uses: docker/build-push-action@v3
with:
context: .
@ -42,38 +44,4 @@ jobs:
tags: ${{ steps.builder-meta.outputs.tags }}
labels: ${{ steps.builder-meta.outputs.labels }}
build-args: |
SCOPE=builder
push_viewer:
name: Viewer
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Extract Viewer meta
id: viewer-meta
uses: docker/metadata-action@v4
with:
images: baptistearno/typebot-viewer
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push viewer image
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.viewer-meta.outputs.tags }}
labels: ${{ steps.viewer-meta.outputs.labels }}
build-args: |
SCOPE=viewer
SCOPE=${{ matrix.app }}