-
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (58 loc) · 1.39 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
name: Run Tests and Build
on:
# Updated to only run on pull requests to dev because all pushed to main will go through dev
pull_request:
branches:
# - main
- dev
# push:
# branches:
# - main
# - dev
jobs:
unit-testing-extension:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '20.7.0'
cache: 'npm'
- name: Install Extension dependencies
run: |
cd extension
npm ci
- name: Build Extension
run: |
cd extension
npm run build
- name: Test Extension
run: |
cd extension
npm test
unit-testing-package-react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install Package dependencies
run: |
cd package-react
npm ci
- name: Install linux handler for github actions
run: |
cd package-react
npm i @rollup/rollup-linux-x64-gnu
- name: Build Package
run: |
cd package-react
npm run build
- name: Test Package
run: |
cd package-react
npm test