Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/matrix jobid #39

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
90 changes: 71 additions & 19 deletions .github/workflows/test-basic-pwc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,89 @@ jobs:
fail-fast: false
matrix:
# run 3 copies of the job in parallel
shard: [1, 2, 3]
shard: [1]

name: "Playwright Tests - pwc"
timeout-minutes: 60
runs-on: ubuntu-22.04
container: mcr.microsoft.com/playwright:1.46.1
container: mcr.microsoft.com/playwright:latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
# - uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.sha }}

# https://github.com/actions/runner-images/issues/6775
- run: |
echo "$GITHUB_WORKSPACE"
git config --global --add safe.directory "$GITHUB_WORKSPACE"

- uses: actions/setup-node@v4
with:
node-version: "20.x"
# Dump the GitHub context
- name: Dump GitHub Context
run:
echo '${{ toJson(github) }}'

- name: Install dependencies
# Dump Environment variables
- name: Dump Env Vars
run: |
npm ci
npx playwright install chrome

- name: Playwright Tests
continue-on-error: false
working-directory: ./basic
env:
CURRENTS_PROJECT_ID: bnsqNa
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
printenv | grep -v "SECRET" | sort

# Dump Environment variables
- name: Dump Env Context
run: |
echo '${{ toJson(env) }}'

- name: Dump Strategy Context
run: |
echo '${{ toJson(strategy) }}'

- name: Dump vars Context
run: |
echo '${{ toJson(vars) }}'

- name: Dump needs Context
run: |
echo '${{ toJson(needs) }}'

- name: Dump needs Context
run: |
npx pwc --shard=${{ matrix.shard }}/${{ strategy.job-total }}
echo '${{ toJson(inputs) }}'

# Dump Job Context
- name: Dump Job Context
run: echo '${{ toJson(job) }}'

# Dump Runner Context
- name: Dump Runner Context
run: echo '${{ toJson(runner) }}'

# Dump Steps Context
- name: Dump Steps Context
run: echo '${{ toJson(steps) }}'

# Dump Secrets (only keys, not values, for security reasons)
- name: List Secrets Keys
run: echo '${{ toJson(secrets) }}'

# Dump Matrix Context (if matrix is used)
- name: Dump Matrix Context
if: ${{ matrix }}
run: echo '${{ toJson(matrix) }}'

# - uses: actions/setup-node@v4
# with:
# node-version: "20.x"

# - name: Install dependencies
# run: |
# npm ci
# npx playwright install chrome

# - name: Playwright Tests
# continue-on-error: false
# working-directory: ./basic
# env:
# CURRENTS_PROJECT_ID: bnsqNa
# CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}
# run: |
# npx pwc --shard=${{ matrix.shard }}/${{ strategy.job-total }}
41 changes: 0 additions & 41 deletions SECURITY.md

This file was deleted.

File renamed without changes.
Loading