1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 16:25:31 -04:00

switch back to JS for serverless functions (for now) (#549)

Vercel's TS transpiliation is too flaky: https://github.com/vercel/vercel/discussions/6665
This commit is contained in:
2021-09-09 17:30:38 -04:00
committed by GitHub
parent aa9f347c3d
commit 4ce401b9ef
15 changed files with 107 additions and 410 deletions

View File

@@ -19,10 +19,6 @@ jobs:
with:
node-version: 14.x
- run: yarn install --frozen-lockfile
# https://docs.sentry.io/platforms/node/typescript/#configuring-typescript-compiler
- run: |
npx -p typescript tsc
ls -lah ./api
- uses: getsentry/action-release@v1
if: github.event.deployment_status.environment == 'production'
env:
@@ -31,7 +27,6 @@ jobs:
SENTRY_PROJECT: jarvis
with:
environment: ${{ github.event.deployment_status.environment }}
sourcemaps: ./api
- uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable
@@ -46,14 +41,16 @@ jobs:
- if: github.event.deployment_status.environment == 'production'
run: |
echo "BASE_DEPLOY_URL=https://jarv.is" >> $GITHUB_ENV
echo "LHCI_EXTRA_FLAGS=" >> $GITHUB_ENV
echo "LHCI_BUILD_CONTEXT__CURRENT_BRANCH=main" >> $GITHUB_ENV
- if: github.event.deployment_status.environment == 'preview'
run: |
echo "BASE_DEPLOY_URL=${{ github.event.deployment_status.target_url }}" >> $GITHUB_ENV
echo "LHCI_EXTRA_FLAGS=--assert.assertions.is-crawlable=off --assert.assertions.canonical=off" >> $GITHUB_ENV
echo "LHCI_BUILD_CONTEXT__CURRENT_BRANCH=${{ github.event.deployment.ref }}" >> $GITHUB_ENV
- continue-on-error: true
run: |
lhci autorun \
lhci autorun ${{ env.LHCI_EXTRA_FLAGS }} \
--collect.url=${{ env.BASE_DEPLOY_URL }}/ \
--collect.url=${{ env.BASE_DEPLOY_URL }}/notes/how-to-pull-request-fork-github/ \
--collect.url=${{ env.BASE_DEPLOY_URL }}/projects/