-
Notifications
You must be signed in to change notification settings - Fork 425
47 lines (40 loc) · 1.14 KB
/
jest-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Jest Tests Workflow
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
package:
[
"web",
"utils",
"server",
"stores",
"pools",
"math",
"bridge",
"tx",
"proto-codecs",
"unit",
]
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache dependencies
uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.OS }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-${{ matrix.node-version }}
${{ runner.OS }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run ${{ matrix.package }} tests
run: yarn test --filter=@osmosis-labs/${{ matrix.package }}