Skip to content

[Toolkit] Migrate Tailwind kits to the tailwind_classes mergeable idiom #1064

[Toolkit] Migrate Tailwind kits to the tailwind_classes mergeable idiom

[Toolkit] Migrate Tailwind kits to the tailwind_classes mergeable idiom #1064

name: App Demo Native
on:
push:
branches-ignore:
- 'dependabot/**'
paths:
- '.github/workflows/demo-native.yaml'
- 'apps/demo-native/**'
- 'src/Native/**'
- 'src/StimulusBundle/**'
- '!src/*/doc/**'
- '!src/**/*.md'
pull_request:
paths-ignore:
- '.github/workflows/demo-native.yaml'
- 'apps/demo-native/**'
- 'src/Native/**'
- 'src/StimulusBundle/**'
- '!src/*/doc/**'
- '!src/**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
with:
php-version: '8.4'
tools: symfony-cli, flex
- name: Install root PHP dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
working-directory: ${{ github.workspace }}
- name: Build root PHP packages
run: php .github/build-packages.php
- name: Install app dependencies
uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
working-directory: apps/demo-native
dependency-versions: highest
- name: Start Symfony server
run: symfony server:start -d --port=9888 --no-tls
working-directory: apps/demo-native
- name: Test homepage returns 200
run: curl --fail-with-body http://127.0.0.1:9888/
- name: Test note detail returns 200
run: curl --fail-with-body http://127.0.0.1:9888/notes/1
- name: Test new note page returns 200
run: curl --fail-with-body http://127.0.0.1:9888/notes/new
- name: Test edit note page returns 200
run: curl --fail-with-body http://127.0.0.1:9888/notes/1/edit
- name: Test settings page returns 200
run: curl --fail-with-body http://127.0.0.1:9888/settings
- name: Test native config JSON returns 200
run: curl --fail-with-body http://127.0.0.1:9888/config/ios_v1.json
- name: Validate native config contains modal rule
run: curl -s http://127.0.0.1:9888/config/ios_v1.json | jq -e '[.rules[] | select(.properties.context == "modal")] | length > 0'
- name: Stop Symfony server
if: always()
run: symfony server:stop
working-directory: apps/demo-native