Skip to content

Add e2e tests and bump versions #61

Add e2e tests and bump versions

Add e2e tests and bump versions #61

Workflow file for this run

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
- 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 }}