Skip to content

chore: use UT_DISABLE_NODE_PREVIOUS #413

chore: use UT_DISABLE_NODE_PREVIOUS

chore: use UT_DISABLE_NODE_PREVIOUS #413

name: Unit tests
on:
push:
branches-ignore: [main]
jobs:
unit-tests:
uses: salesforcecli/github-workflows/.github/workflows/unitTest.yml@main
with:
UT_DISABLE_NODE_PREVIOUS: 'true' # Set to 'true' or 'false' as needed

Check failure on line 10 in .github/workflows/testCommitExceptMain.yml

View workflow run for this annotation

GitHub Actions / Unit tests

Invalid workflow file

The workflow is not valid. .github/workflows/testCommitExceptMain.yml (Line: 10, Col: 33): Invalid input, UT_DISABLE_NODE_PREVIOUS is not defined in the referenced workflow.
test-bundle:
runs-on: ubuntu-latest
needs: unit-tests
name: test bundling
steps:
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main
- name: Build the project
run: yarn build
- name: check if bundling runs into failures
run: node scripts/testEsbuild.js
xNuts:
needs: unit-tests
name: external NUTs
uses: salesforcecli/github-workflows/.github/workflows/externalNut.yml@main
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
with:
packageName: '@salesforce/apex-node'
externalProjectGitUrl: 'https://github.com/salesforcecli/plugin-apex'
ignoreScripts: true
os: ${{ matrix.os }}
preSwapCommands: 'yarn upgrade @salesforce/core; npx yarn-deduplicate; yarn install'
preBuildCommands: 'shx rm -rf node_modules/@salesforce/core; shx rm -rf node_modules/@jsforce/jsforce-node'
preExternalBuildCommands: 'npm why @salesforce/core --json'
useCache: false
secrets: inherit