Update dependency eslint-plugin-playwright to v1.8.0 #141
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: Pre merge test | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
merge_test: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
env: | |
BASE_URL: ${{ vars.BASE_URL }} | |
container: | |
image: mcr.microsoft.com/playwright:v1.48.1-jammy | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Cache node_modules | |
uses: actions/cache@v4 | |
id: cache-node-modules | |
with: | |
path: node_modules | |
key: modules-${{ hashFiles('package-lock.json') }} | |
- name: Install dependencies | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Run Playwright tests | |
run: xvfb-run npx playwright test --grep "@devRun" | |
- name: Link Git Information And Browser Version To Allure Report | |
working-directory: allure-results | |
if: always() | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
{ | |
echo BUILD_URL=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
echo GIT_BRANCH=${{ github.head_ref || github.ref_name }} | |
echo GIT_COMMIT_ID=${{ github.sha }} | |
echo GIT_COMMIT_MESSAGE="$(git show -s --format=%s HEAD)" | |
echo GIT_COMMIT_AUTHOR_NAME="$(git show -s --format='%ae' HEAD)" | |
echo GIT_COMMIT_TIME="$(git show -s --format=%ci HEAD)" | |
} >> environment.properties | |
- name: Generate Allure Report | |
uses: simple-elf/allure-report-action@master | |
if: always() | |
id: allure-report | |
with: | |
allure_results: allure-results | |
allure_report: allure-report | |
gh_pages: gh-pages | |
allure_history: allure-history | |
- name: Deploy Report To Github Pages | |
if: always() | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: allure-history |