-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (44 loc) · 1.26 KB
/
extension-PR.yaml
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
name: 'extension-pr'
on:
pull_request:
branches: [main]
paths:
- 'holo-key-manager-extension/**'
jobs:
build:
runs-on: ubuntu-latest
environment:
name: Extension
steps:
- uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Cache build
id: cache-build
uses: actions/cache@v4
with:
path: |
holo-key-manager-extension/build
holo-key-manager-js-client/lib
key: test-cache-2
- name: Run unit tests
run: pnpm test
working-directory: holo-key-manager-extension
- name: Build extension
if: steps.cache-build.outputs.cache-hit != 'true'
run: pnpm build
working-directory: holo-key-manager-extension
- name: Build client
if: steps.cache-build.outputs.cache-hit != 'true'
run: pnpm build
working-directory: holo-key-manager-js-client
- name: Run e2e tests
run: pnpm e2e-tests
env:
CHROME_ID: ${{ vars.CHROME_ID }}