Repository navigation
Refocus the typing input after a category option toggles in WebKit #36
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: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run format:check | |
| - run: npx playwright install --with-deps chromium firefox webkit | |
| - run: npm test | |
| - name: Upload Playwright traces on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: playwright-test-results | |
| path: test-results/ | |
| retention-days: 7 | |
| # Publishes the site only after the checks above pass, and only the files | |
| # the page needs. | |
| deploy: | |
| needs: check | |
| if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Collect site files | |
| run: | | |
| mkdir _site | |
| cp index.html theme.js texts.js script.js style.css sw.js manifest.webmanifest preview.png _site/ | |
| cp -r fonts icons _site/ | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: _site | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 |