This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
bugITwhisperer: playwright skeleton tests steps update (Issue #378) #372
Workflow file for this run
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: Tests | |
on: | |
push: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
Tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: npm ci | |
# - name: Get installed Playwright version | |
# id: playwright-version | |
# run: echo -n "::set-output name=version::$(npm ls @playwright/test --json | jq --raw-output '.dependencies["@playwright/test"].version')" | |
# - uses: actions/cache@v3 | |
# id: playwright-cache | |
# with: | |
# path: '~/.cache/ms-playwright' | |
# key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}' | |
# restore-keys: | | |
# ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }} | |
- name: Install Playwright's dependencies | |
# if: steps.playwright-cache.outputs.cache-hit != 'true' | |
run: npx playwright install --with-deps | |
- name: Run tests | |
run: npm run test |