Skip to content

chore(ci): setup nx agents and improve other CI workflows #2

chore(ci): setup nx agents and improve other CI workflows

chore(ci): setup nx agents and improve other CI workflows #2

Workflow file for this run

name: CI
on:
push:
branches:
- develop
pull_request:
# Needed for nx-set-shas when run on the main branch
permissions:
actions: read
contents: read
jobs:
develop:
runs-on: ubuntu-latest
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
timeout-minutes: 60
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
# Connect your workspace on nx.app and uncomment this to enable task distribution.
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "e2e" targets have been requested
- run: pnpm exec nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="e2e-ci"
- name: Setup node, pnpm, java, flutter, cache, and install dependencies
uses: ./.github/actions/setup
# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track develop origin/develop
- run: pnpm exec nx-cloud record -- nx format:check
- run: pnpm exec nx affected -t lint test build e2e-ci --exclude=smoke --codeCoverage