Skip to content

fix(trpc): remove hard coded superjson transformer in favor of trpc c… #784

fix(trpc): remove hard coded superjson transformer in favor of trpc c…

fix(trpc): remove hard coded superjson transformer in favor of trpc c… #784

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request: {}
env:
DOCS_APP_ARTIFACT_NAME: docs-app
DOCS_APP_PATH: dist/apps/docs-app/
NODE_OPTIONS: --max-old-space-size=6144
jobs:
commitlint:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
# Required by wagoid/commitlint-github-action
pull-requests: read
steps:
- uses: actions/checkout@v3
with:
# Required by wagoid/commitlint-github-action
fetch-depth: 0
- name: Lint commit messages
uses: wagoid/commitlint-github-action@v5
with:
failOnWarnings: true
helpURL: https://github.com/analogjs/analog/blob/main/CONTRIBUTING.md#-commit-message-guidelines
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .node-version
cache: yarn
- name: Install
run: yarn install --frozen-lockfile --non-interactive
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: End-to-end test
run: yarn e2e
- name: Upload docs website
# Runs on merge to the `main` branch
if: github.event_name == 'push' && github.ref_name == 'main'
uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: ${{ env.DOCS_APP_ARTIFACT_NAME }}
path: ${{ env.DOCS_APP_PATH }}
retention-days: 1
deploy-docs:
name: '[Merge] Deploy docs website'
needs: checks
# Runs on merge to the `main` branch
if: github.event_name == 'push' && github.ref_name == 'main'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
# Authorize deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
# Group concurrency on workflow, then:
# - Is merge run? Group on branch name (`refs/heads/main`)
# - Is pull request? Group on pull request branch name, for example `feat/add-awesome-feature`
group: >-
${{ github.workflow }}-deploy-docs-${{
github.event_name == 'push'
&& github.ref
|| github.head_ref
}}
# Run merge workflows in sequence to prevent parallel deployments and releases
# Cancel stale pull request runs in progress for the same branch
cancel-in-progress: ${{ github.event_name != 'push' }}
steps:
- name: Download docs website
uses: actions/download-artifact@v3
with:
name: ${{ env.DOCS_APP_ARTIFACT_NAME }}
path: ${{ env.DOCS_APP_PATH }}
- name: Set up GitHub Pages
uses: actions/configure-pages@v1
- name: Upload GitHub Pages-compatible tarball
uses: actions/upload-pages-artifact@v1
with:
path: ${{ env.DOCS_APP_PATH }}
- name: Deploy docs website tarball
id: deploy
uses: actions/deploy-pages@v1