Add e2e tests and bump versions #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |