example #587
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: example | |
| on: | |
| push: | |
| pull_request: | |
| branches: [main, beta] | |
| schedule: | |
| # run daily at 00:00 | |
| - cron: 0 0 * * * | |
| jobs: | |
| examples: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, windows-latest] | |
| node-version: [18, 20] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: npx playwright install --with-deps chromium | |
| - run: npm run example | |
| # run example second time with cache | |
| - run: npm run example |