Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build standalone without pkg #2882

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
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
4 changes: 3 additions & 1 deletion .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ runs:
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4
with:
name: gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}-${{ strategy.job-index }}
path: dist
path: |
dist
!dist/balena
retention-days: 1
if-no-files-found: error
2 changes: 2 additions & 0 deletions .mocharc-standalone.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const commonConfig = require('./.mocharc.js');

Check warning on line 1 in .mocharc-standalone.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test custom (self-hosted, X64)

File ignored by default.

Check warning on line 1 in .mocharc-standalone.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test custom (self-hosted, ARM64)

File ignored by default.

Check warning on line 1 in .mocharc-standalone.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test custom (macos-12)

File ignored by default.

Check warning on line 1 in .mocharc-standalone.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test custom (windows-2019)

File ignored by default.

Check warning on line 1 in .mocharc-standalone.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test custom (macos-latest-xlarge)

File ignored by default.

Check warning on line 1 in .mocharc-standalone.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test npm (20.x)

File ignored by default.

Check warning on line 1 in .mocharc-standalone.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test npm (20.x)

File ignored by default.

module.exports = {
...commonConfig,
spec: ['tests/auth/*.spec.ts', 'tests/commands/**/*.spec.ts'],
// Skip standalone tests on windows
...(process.platform === 'win32' && { grep: '$^' }),
};
2 changes: 1 addition & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {

Check warning on line 1 in .mocharc.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test custom (self-hosted, X64)

File ignored by default.

Check warning on line 1 in .mocharc.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test custom (self-hosted, ARM64)

File ignored by default.

Check warning on line 1 in .mocharc.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test custom (macos-12)

File ignored by default.

Check warning on line 1 in .mocharc.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test custom (windows-2019)

File ignored by default.

Check warning on line 1 in .mocharc.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test custom (macos-latest-xlarge)

File ignored by default.

Check warning on line 1 in .mocharc.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test npm (20.x)

File ignored by default.

Check warning on line 1 in .mocharc.js

View workflow job for this annotation

GitHub Actions / Flowzone / Test npm (20.x)

File ignored by default.
reporter: 'spec',
require: 'ts-node/register/transpile-only',
file: './tests/config-tests',
timeout: 12000,
timeout: 48000,
// To test only, say, 'push.spec.ts', do it as follows so that
// requests are authenticated:
// spec: ['tests/auth/*.spec.ts', 'tests/**/deploy.spec.ts'],
Expand Down
14 changes: 7 additions & 7 deletions INSTALL-LINUX.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ method.

Selected operating system: **Linux**

1. Download the latest zip file from the [latest release
1. Download the latest tar.gz file from the [latest release
page](https://github.com/balena-io/balena-cli/releases/latest). Look for a file name that ends
with "-standalone.zip", for example:
`balena-cli-vX.Y.Z-linux-x64-standalone.zip`
with "-standalone.tar.gz", for example:
`balena-cli-vX.Y.Z-linux-x64-standalone.tar.gz`

2. Extract the zip file contents to any folder you choose, for example `/home/james`.
The extracted contents will include a `balena-cli` folder.
2. Extract the tar.gz file contents to any folder you choose, for example `/home/james`.
The extracted contents will include a `balena/bin` folder.

3. Add that folder (e.g. `/home/james/balena-cli`) to the `PATH` environment variable.
3. Add that folder (e.g. `/home/james/balena/bin`) to the `PATH` environment variable.
Check this [StackOverflow
post](https://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux-unix)
for instructions. Close and reopen the terminal window so that the changes to `PATH`
Expand All @@ -27,7 +27,7 @@ Selected operating system: **Linux**
* `balena version` - should print the CLI's version
* `balena help` - should print a list of available commands

To update the balena CLI to a new version, download a new release zip file and replace the previous
To update the balena CLI to a new version, download a new release tar.gz file and replace the previous
installation folder. To uninstall, simply delete the folder and edit the PATH environment variable
as described above.

Expand Down
Loading
Loading