Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 32 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,35 @@ on:
jobs:
yarn-lockfile-check:
uses: salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main
linux-unit-tests:
needs: yarn-lockfile-check
uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main
windows-unit-tests:
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
# linux-unit-tests:
# needs: yarn-lockfile-check
# uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main
# windows-unit-tests:
# needs: linux-unit-tests
# uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
e2e-bash-spaces-tests:
# needs: linux-unit-tests
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Setup node
# https://github.com/actions/setup-node/releases/tag/v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
cache: yarn
- name: Install sf CLI
run: npm i -g @salesforce/cli
- name: Install dependencies
run: yarn install
- name: Build branch
run: yarn compile
- name: Link plugin
run: sf plugins link --no-install
- name: Run tests
run: yarn test:e2e:bash-spaces

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@types/debug": "^4.1.12",
"@types/ejs": "^3.1.5",
"@types/mocha": "^10.0.9",
"@types/nock": "^11.1.0",
"@types/node": "^18",
"chai": "^4",
"commitlint": "^19",
Expand All @@ -30,7 +29,6 @@
"husky": "^9.1.7",
"lint-staged": "^15.5.2",
"mocha": "^10.8.2",
"nock": "^13.5.6",
"nyc": "^15.1.0",
"oclif": "^4.22.4",
"prettier": "^3.6.2",
Expand Down Expand Up @@ -74,7 +72,8 @@
"prepack": "yarn build && oclif manifest && oclif readme",
"prepare": "husky && yarn build",
"pretest": "yarn build && tsc -p test --noEmit",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"test": "mocha --forbid-only \"test/**/*.test.ts\" --ignore \"test/e2e/**\"",
"test:e2e:bash-spaces": "mocha --forbid-only test/e2e/bash-completion.test.ts",
"version": "oclif readme && git add README.md"
},
"type": "module"
Expand Down
Loading
Loading