Skip to content

Commit

Permalink
fix(core): update ci-workflow snapshot
Browse files Browse the repository at this point in the history
feat(core): check lock file for bunlock on push

Signed-off-by: Jordan Hall <[email protected]>
  • Loading branch information
Jordan-Hall committed Apr 11, 2024
1 parent 7193ac5 commit 2f28cfb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Expand Up @@ -265,6 +265,8 @@ jobs:
# - script: npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
- script: npm ci
- script: git branch --track main origin/main
condition: eq(variables['Build.Reason'], 'PullRequest')
- script: npx nx-cloud record -- nx format:check --base=$(BASE_SHA) --head=$(HEAD_SHA)
- script: npx nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) -t lint test build
Expand Down Expand Up @@ -299,6 +301,7 @@ pipelines:
- step:
name: 'Build and test affected apps on "main" branch changes'
script:
- export NX_BRANCH=$BITBUCKET_BRANCH
# Connect your workspace on my.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
# - npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"
Expand Down Expand Up @@ -331,6 +334,10 @@ jobs:
- nx/set-shas:
main-branch-name: 'main'
# Required for nx affected if we're on a branch
- run: git branch --track main origin/main
condition: eq(variables['Build.Reason'], 'PullRequest')
- run: npx nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD
- run: npx nx affected --base=$NX_BASE --head=$NX_HEAD -t lint test build
Expand Down Expand Up @@ -376,6 +383,9 @@ jobs:
- run: npm ci
- uses: nrwl/nx-set-shas@v4
- run: git branch --track main origin/main
if: \${{ github.event_name == 'pull_request' }}
- run: npx nx-cloud record -- nx format:check
- run: npx nx affected -t lint test build
"
Expand Down Expand Up @@ -414,6 +424,9 @@ jobs:
- run: npm ci
- uses: nrwl/nx-set-shas@v4
- run: git branch --track main origin/main
if: \${{ github.event_name == 'pull_request' }}
- run: npx nx-cloud record -- nx format:check
- run: npx nx affected -t lint test build
"
Expand Down
5 changes: 5 additions & 0 deletions scripts/check-lock-files.js
Expand Up @@ -7,6 +7,11 @@ function checkLockFiles() {
'Invalid occurence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"'
);
}
if (fs.existsSync('bun.lockb')) {
errors.push(
'Invalid occurence of "bun.lockb" file. Please remove it and use only "pnpm-lock.yaml"'
);
}
if (fs.existsSync('yarn.lock')) {
errors.push(
'Invalid occurence of "yarn.lock" file. Please remove it and use only "pnpm-lock.yaml"'
Expand Down

0 comments on commit 2f28cfb

Please sign in to comment.