Skip to content

fix: NextJS security upgrade. #149

fix: NextJS security upgrade.

fix: NextJS security upgrade. #149

Workflow file for this run

name: Run Tests
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Setup JFrog CLI
id: setup-jfrog-cli
uses: jfrog/setup-jfrog-cli@f0a84f35b0e0bd21838c5fb3e6788072d6540d13 # v4
env:
JF_URL: https://a0us.jfrog.io
with:
oidc-provider-name: atko-cic
- name: Mint Artifactory npm credentials
env:
ARTIFACTORY_USER: ${{ steps.setup-jfrog-cli.outputs.oidc-user }}
ARTIFACTORY_API_TOKEN: ${{ steps.setup-jfrog-cli.outputs.oidc-token }}
run: |
printf '# Artifactory credentials for the @a0 scope\n' > "$RUNNER_TEMP/npmrc"
curl -sSf -u "$ARTIFACTORY_USER:$ARTIFACTORY_API_TOKEN" \
https://a0us.jfrog.io/artifactory/api/npm/npm/auth/a0 >> "$RUNNER_TEMP/npmrc"
- name: Install dependencies
run: npm ci --userconfig "$RUNNER_TEMP/npmrc"
- name: Run Vitest
run: npx vitest run
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright Tests
run: NODE_OPTIONS="--no-experimental-strip-types" npx playwright test
- name: Upload Playwright Traces
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-traces
path: test-results/**/trace.zip