Bump the npm_and_yarn group across 2 directories with 6 updates #16
This file contains hidden or 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: E2E Tests | |
| on: | |
| push: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [macos-latest, windows-latest, ubuntu-latest] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - name: Node v22 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: "pnpm" | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| cache-on-failure: true | |
| workspaces: src-tauri | |
| - name: install dependencies | |
| run: pnpm install | |
| - name: install Tauri dependencies (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: > | |
| sudo apt-get update && | |
| sudo apt-get install -y | |
| webkit2gtk-4.1 | |
| libayatana-appindicator3-dev | |
| webkit2gtk-driver | |
| xvfb | |
| - name: install msdgedriver (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: | | |
| cargo install --git https://github.com/chippers/msedgedriver-tool | |
| & "$HOME/.cargo/bin/msedgedriver-tool.exe" | |
| $PWD.Path >> $env:GITHUB_PATH | |
| - name: run e2e tests (Linux) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| pnpm install | |
| xvfb-run pnpm test | |
| working-directory: e2e | |
| - name: run e2e tests | |
| if: matrix.os != 'ubuntu-latest' | |
| run: | | |
| pnpm install | |
| pnpm test | |
| working-directory: e2e | |
| env: | |
| CN_API_KEY: ${{ secrets.CN_API_KEY }} |