Skip to content

Merge pull request #473 from ForgeRock/develop #232

Merge pull request #473 from ForgeRock/develop

Merge pull request #473 from ForgeRock/develop #232

Workflow file for this run

name: ForgeRock Ubuntu CI
on:
push:
branches:
- develop
- master
workflow_dispatch:
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NX_CLOUD_ENCRYPTION_KEY: ${{ secrets.NX_CLOUD_ENCRYPTION_KEY }}
NX_CLOUD_DISTRIBUTED_EXECUTION: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
HUSKY: 0
jobs:
merge:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
node: [18.x, 20.x]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
run_install: false
# This line enables distribution
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "e2e-ci" targets have been requested
- run: pnpm dlx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="e2e-ci" --verbose
- uses: actions/setup-node@v4
id: cache
with:
node-version: '20.10.0'
cache: 'pnpm'
- run: pnpm install
- run: pnpm dlx playwright install
- run: pnpm exec nx-cloud record -- nx format:check --verbose
- run: pnpm exec nx affected -t lint test build e2e-ci --verbose