Skip to content

feat: introduce custom theme types and refactor parameter validation … #45

feat: introduce custom theme types and refactor parameter validation …

feat: introduce custom theme types and refactor parameter validation … #45

Workflow file for this run

name: Deploy Studio
on:
push:
branches: [main]
paths:
- 'analytics-gen-studio/**'
- 'schema/**'
- 'doc/**'
- 'lib/**'
- 'dartdoc_options.yaml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: analytics-gen-studio/package-lock.json
- name: Install dependencies
working-directory: analytics-gen-studio
run: npm ci
- name: Run tests
working-directory: analytics-gen-studio
run: npm test
- name: Type check
working-directory: analytics-gen-studio
run: npx tsc -b
build:
name: Build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Install Dart dependencies
run: dart pub get
- name: Generate API docs
run: dart doc
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: analytics-gen-studio/package-lock.json
- name: Install dependencies
working-directory: analytics-gen-studio
run: npm ci
- name: Build
working-directory: analytics-gen-studio
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: analytics-gen-studio/dist
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4