Skip to content

Update CI workflow to include 'develop' branch #137

Update CI workflow to include 'develop' branch

Update CI workflow to include 'develop' branch #137

Workflow file for this run

name: CI
on:
push:
branches: ['master', 'develop']
pull_request:
branches: ['master', 'develop']
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
jobs:
main:
runs-on: ubuntu-latest
steps:
- 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 "build" targets have been requested
- run: yarn nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
# Cache node_modules
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4
- run: git branch --track main origin/main
if: ${{ github.event_name == 'pull_request' }}
- run: yarn nx-cloud record -- nx format:check
- run: yarn nx affected -t lint test build