try adding GitHub Actions tests #2
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 | ||
|
Check failure on line 1 in .github/workflows/test.yml
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| permissions: {} | ||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| - name: Install Chrome | ||
| uses: sudo snap install chromium | ||
| - name: Install xvfb | ||
| run: sudo apt-get install xvfb | ||
| - name: Test top level | ||
| run: | | ||
| yarn install | ||
| yarn presubmit | ||
| - name: Top packages | ||
| run: | | ||
| for package in "face-detection"; do | ||
| pushd "$package" | ||
| yarn install | ||
| xvfb-run --auto-servernum yarn test | ||
| popd | ||
| done | ||