Skip to content

Commit 73c67a2

Browse files
committed
workflow: add unit test workflow
1 parent 5722f69 commit 73c67a2

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code using yarn build:app run unit tests using yarn test:unit.
2+
3+
name: Playground Unit tests
4+
5+
on:
6+
pull_request:
7+
branches:
8+
- development
9+
- development_2.7
10+
paths:
11+
- "packages/playground/**"
12+
13+
jobs:
14+
unit-tests:
15+
runs-on: ubuntu-latest
16+
env:
17+
NODE_OPTIONS: "--max-old-space-size=8192"
18+
19+
strategy:
20+
matrix:
21+
node-version: [20.x]
22+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Setup Node.js ${{ matrix.node-version }}
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: ${{ matrix.node-version }}
31+
cache: "yarn"
32+
cache-dependency-path: "**/yarn.lock"
33+
34+
- name: Install dependencies
35+
run: |
36+
yarn install
37+
- name: Build
38+
run: |
39+
lerna run build --no-private
40+
- name: Run unit tests
41+
run: yarn workspace @threefold/playground test:unit

0 commit comments

Comments
 (0)