Skip to content

Commit ea98792

Browse files
committed
try adding GitHub Actions tests
1 parent 4cbead3 commit ea98792

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions: {}
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
persist-credentials: false
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 24
20+
- name: Install Chrome
21+
run: sudo snap install chromium
22+
- name: Install xvfb
23+
run: sudo apt-get install xvfb
24+
- name: Test top level
25+
run: |
26+
yarn install
27+
yarn presubmit
28+
- name: Top packages
29+
run: |
30+
for package in "face-detection"; do
31+
pushd "$package"
32+
yarn install
33+
xvfb-run --auto-servernum yarn test
34+
popd
35+
done

0 commit comments

Comments
 (0)