Update dependencies #750
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: Run tests | |
on: [push] | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: ['18.x'] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build:code | |
- run: pnpm test:ci | |
- uses: codecov/codecov-action@v4 | |
test-e2e: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: ['18.x'] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build:code | |
- run: | | |
sudo chown root examples/basic-react/node_modules/electron/dist/chrome-sandbox \ | |
&& sudo chmod 4755 examples/basic-react/node_modules/electron/dist/chrome-sandbox \ | |
&& sudo chown root examples/basic-vanilla-esm/node_modules/electron/dist/chrome-sandbox \ | |
&& sudo chmod 4755 examples/basic-vanilla-esm/node_modules/electron/dist/chrome-sandbox | |
- run: xvfb-run --auto-servernum -- pnpm test:e2e |