Skip to content

ci(test): test ci

ci(test): test ci #102

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
actions: read
contents: read
env:
PNPM_VERSION: 9.12.1
NODE_VERSION: 20
NX_POWERPACK_LICENSE: ${{ secrets.NX_POWERPACK_LICENSE }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NX_PERF_LOGGING: '${{ secrets.ACTIONS_STEP_DEBUG || false }}'
# NX_VERBOSE_LOGGING: '${{ secrets.ACTIONS_STEP_DEBUG || false }}'
NX_VERBOSE_LOGGING: 'true'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Cache node_modules
id: cache-modules
uses: actions/cache@v4
with:
lookup-only: true
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ env.NODE_VERSION }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install packages
# if: steps.cache-modules.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4
- name: Debug Node.js and npm
run: |
node --version
npm --version
which npm
which npx
- run: pnpm nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after=e2e
- run: pnpm nx-cloud record -- nx format:check
- run: pnpm nx affected -t e2e