Skip to content

Commit 7f37fea

Browse files
committed
ci: client tests
Adding automated tests run for PRs for client changes
1 parent d5a001d commit 7f37fea

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/client.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Client
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
paths:
6+
- 'client/**'
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
test:
13+
name: Tests
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [ 18.x, 20.x ]
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'npm'
27+
- name: Install dependencies
28+
uses: borales/actions-yarn@v4
29+
with:
30+
cmd: install
31+
dir: client
32+
- name: Run tests
33+
uses: borales/actions-yarn@v4
34+
with:
35+
cmd: test
36+
dir: client

0 commit comments

Comments
 (0)