docs: migrate to vitepress #64
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
| # This workflow runs tests for the app using a similar setup as the CircleCI config. | |
| name: Blaze Tests | |
| # Trigger on any pull request | |
| # and on pushes to the master branch | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| test-app: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Setup Node.js environment | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| - name: Install Meteor | |
| run: | | |
| npx meteor@latest | |
| echo "$HOME/.meteor" >> $GITHUB_PATH | |
| - name: Link packages directory | |
| run: ln -sfn ../packages ./packages | |
| working-directory: test-app | |
| - name: Meteor npm install | |
| run: meteor npm install | |
| working-directory: test-app | |
| - name: Start meteor test-packages (background) | |
| run: | | |
| export URL='http://localhost:4096/' | |
| meteor test-packages --driver-package test-in-console -p 4096 --exclude "${TEST_PACKAGES_EXCLUDE:-}" > /tmp/meteor_test_output.log 2>&1 & | |
| echo $! > /tmp/meteor_test_pid | |
| working-directory: test-app | |
| # Wait for test-in-console to be ready for up to 6 minutes | |
| # in order to accommodate slower CI environments | |
| - name: Wait for test-in-console to be ready | |
| run: | | |
| for i in {1..360}; do | |
| if grep -q 'test-in-console listening' /tmp/meteor_test_output.log; then | |
| echo "test-in-console is ready." | |
| break | |
| fi | |
| echo "Waiting for test-in-console... attempt $i" | |
| sleep 1 | |
| done | |
| # Fail if the service didn't start | |
| if ! grep -q 'test-in-console listening' /tmp/meteor_test_output.log; then | |
| echo "test-in-console did not start in time." | |
| cat /tmp/meteor_test_output.log # Print the log for debugging | |
| exit 1 | |
| fi | |
| shell: bash | |
| working-directory: test-app | |
| - name: Run puppeteerRunner.js | |
| run: meteor node puppeteerRunner.js | |
| env: | |
| URL: http://localhost:4096/ | |
| working-directory: test-app | |
| - name: Kill meteor test-packages process | |
| if: always() | |
| run: | | |
| if [ -f /tmp/meteor_test_pid ]; then | |
| pkill -TERM -P $(cat /tmp/meteor_test_pid) | |
| fi | |
| shell: bash | |
| working-directory: test-app |