Add React SSR demo with Micronaut and GraalJS #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test GraalJS React SSR with Micronaut | |
| on: | |
| push: | |
| paths: | |
| - 'graaljs/graaljs-react-ssr/**' | |
| - '.github/workflows/graaljs-react-ssr.yml' | |
| pull_request: | |
| paths: | |
| - 'graaljs/graaljs-react-ssr/**' | |
| - '.github/workflows/graaljs-react-ssr.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| run: | |
| name: 'graaljs-react-ssr' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: graalvm/setup-graalvm@v1 | |
| with: | |
| java-version: '24.0.2' | |
| distribution: 'graalvm' | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| cache: 'maven' | |
| - name: Build and run Micronaut app | |
| run: | | |
| cd graaljs/graaljs-react-ssr | |
| ./mvnw clean package -DskipTests | |
| ./mvnw mn:run & | |
| - name: Verify application is running | |
| run: | | |
| sleep 10 | |
| curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080 |