Generate golden PCAP fixtures in tests #23
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: Deploy GitHub Pages | |
| on: | |
| push: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: github-pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build static Pages artifact | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout master branch | |
| uses: actions/checkout@v6 | |
| - name: Verify landing page source | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| test -f docs/index.html | |
| test -f docs/styles.css | |
| test -f docs/app.js | |
| test -f docs/site.webmanifest | |
| test -f docs/og-preview.svg | |
| test -f docs/assets/ptp-lab-demo.gif | |
| test -f docs/assets/ptp-lab-dashboard.webp | |
| test -f docs/assets/ptp-lab-dashboard.png | |
| test -f docs/robots.txt | |
| test -f docs/sitemap.xml | |
| grep -q "Process Bus Timing Lab" docs/index.html | |
| grep -q "SoftwareApplication" docs/index.html | |
| grep -q "Sitemap:" docs/robots.txt | |
| echo "Pages source preview:" | |
| find docs -maxdepth 2 -type f | sort | sed 's#^docs/##' | head -120 | |
| - name: Configure Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: ./docs | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| needs: build | |
| if: github.ref == 'refs/heads/master' | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy artifact | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |