-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d82b08
commit 6b7e8e7
Showing
6 changed files
with
25 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,28 +24,28 @@ Ensure you have Go and Make installed: | |
sudo apt install golang make | ||
``` | ||
|
||
Clone the repository and install the CLI: | ||
Clone the repository and install `3lv`: | ||
|
||
```bash | ||
git clone [email protected]:3lvia/cli | ||
cd cli | ||
sudo make install | ||
make install # requires sudo | ||
``` | ||
|
||
**macOS**: If `GOOS` and `GOARCH` are not properly set, you can use this command: | ||
|
||
```bash | ||
# for Intel macs | ||
sudo make install-macos-amd64 | ||
make install-macos-amd64 | ||
# for M1 and newer macs | ||
sudo make install-macos-arm64 | ||
make install-macos-arm64 | ||
``` | ||
|
||
### Running tests | ||
|
||
Unit tests are written in Go and can be run with the following command: | ||
|
||
```bash | ||
``` | ||
make test | ||
``` | ||
|
||
|
@@ -55,10 +55,12 @@ For example, to run the tests for the `build` command: | |
```bash | ||
./tests/build/run_tests.sh | ||
``` | ||
Note that the end-to-end tests run the `3lv` command directly. | ||
This means that if you have changed some code and want to test it locally, you will need to install from source again (e.g. `make install`). | ||
|
||
### Linter | ||
|
||
We use the linter [golangci-lint](https://golangci-lint.run) and can be run with the following command: | ||
We use the linter [golangci-lint](https://golangci-lint.run), which can be run with the following command: | ||
|
||
```bash | ||
make lint | ||
|
@@ -68,8 +70,8 @@ Linter configuration can be found in `.golangci.yml`. | |
|
||
### Releasing a new version | ||
|
||
Increase the number in the `VERSION` file, adhering to [semver](https://semver.org) | ||
Before the CLI is stable at `v1.0.0`, breaking changes will happen in minor versions (and possibly also patch versions). | ||
Increase the number in the `VERSION` file, adhering to [semver](https://semver.org). | ||
Before `3lv` is stable at `v1.0.0`, breaking changes will happen in minor versions (and possibly also patch versions). | ||
Therefore, we will not increase the major version until `v1.0.0` is released. | ||
|
||
When a commit increasing the version is merged or pushed to `trunk`, a GitHub Action will automatically create a new release with the new version number as the tag. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters