Skip to content

User study form

User study form #45

name: ex:tests
on:
pull_request:
branches:
- main
paths:
- "packages/experiments/**"
- ".github/workflows/experiments-test.yml"
- "ex.staging.fly.toml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
svelte-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
shell: bash
run: npm install
- name: Running svelte-check
run: npm run ex:check
- name: Building app
run: npm run ex:build
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
GA_TRACKING_ID: "G-PPE5XD2VKV"
deploy-fly-staging:
if: github.actor != 'dependabot[bot]'
needs: ["svelte-check"]
environment:
name: pr-${{ github.event.number }}-experiments
url: ${{ steps.deploy.outputs.url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm install
- name: Deploy staging build
id: deploy
uses: superfly/[email protected]
env:
FLY_API_TOKEN: ${{ secrets.FLYIO_STAGING_KIT_DEPLOY_GH_ACTION }}
FLY_ORG: go-bazzinga-staging
with:
name: pr-${{ github.event.number }}-experiments
config: "ex.staging.fly.toml"