Skip to content

Commit

Permalink
chore(ci): update pnpm, fix test steps
Browse files Browse the repository at this point in the history
Was just running component tests with Electron.
  • Loading branch information
PaulHax committed May 7, 2024
1 parent d84a2ab commit 3a0c764
Show file tree
Hide file tree
Showing 3 changed files with 6,753 additions and 5,487 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,44 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: 20

- name: Install dependencies
run: |
npm install --location global pnpm
pnpm install
uses: pnpm/action-setup@v4
with:
run_install: true

- name: Build
run: pnpm build

- name: Lint
run: pnpm lint

- name: Test with Chrome
uses: cypress-io/github-action@v5
- name: Test with Electron
uses: cypress-io/github-action@v6
with:
start: pnpm run test
component: true
browser: chrome
command: pnpm run test
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Test with Firefox
uses: cypress-io/github-action@v5
- name: Test with Chrome
uses: cypress-io/github-action@v6
with:
start: pnpm run cy:component
install: false
component: true
browser: firefox
browser: chrome
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Error: "The browser never connected."
# - name: Test with Firefox
# uses: cypress-io/github-action@v6
# with:
# install: false
# component: true
# browser: firefox
# env:
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "0.0.1",
"private": true,
"packageManager": "pnpm@7.12.0",
"packageManager": "pnpm@9.1.0",
"description": "Multi-dimensional web-based image, mesh, and point set viewer",
"type": "module",
"scripts": {
Expand Down
Loading

0 comments on commit 3a0c764

Please sign in to comment.