Skip to content

Fixes docs typos (#178) #437

Fixes docs typos (#178)

Fixes docs typos (#178) #437

Workflow file for this run

name: test
on:
push:
branches: [main, test-*, playwright-test]
pull_request:
branches: [main]
env:
# Force terminal colors. @see https://www.npmjs.com/package/colors
FORCE_COLOR: 1
jobs:
test_linux:
name: ${{ matrix.os }} (${{ matrix.browser }})
strategy:
fail-fast: false
matrix:
browser: [chromium]
os: [ubuntu-20.04, ubuntu-22.04, macos-latest, windows-latest]
node-version: [16.x]
runs-on: ${{ matrix.os }}
# ref: https://playwright.dev/docs/ci#github-actions
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 'latest'
run_install: false
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Install Playwright
run: pnpm exec playwright install --with-deps ${{ matrix.browser }}
- name: Run tests
run: pnpm test
- name: Upload test results
if: always()
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.browser }}-${{ matrix.os }}-playwright-report
path: playwright-report