Skip to content

Commit 0285591

Browse files
authored
Merge pull request #520 from linode/dev
v5.43.0
2 parents 04ef99d + 4aabcec commit 0285591

24 files changed

+1131
-611
lines changed

.github/workflows/e2e-suite.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@ jobs:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737

3838
- name: Run the integration test suite
39-
run: make testint
39+
run: |
40+
timestamp=$(date +'%Y%m%d%H%M')
41+
report_filename="${timestamp}_cli_test_report.xml"
42+
status=0
43+
if ! pytest tests/integration --disable-warnings --junitxml="${report_filename}"; then
44+
echo "Tests failed, but attempting to upload results anyway"
45+
fi
4046
env:
4147
LINODE_CLI_TOKEN: ${{ secrets.LINODE_TOKEN }}
48+
49+
- name: Upload test results
50+
run: |
51+
filename=$(ls | grep -E '^[0-9]{12}_cli_test_report\.xml$')
52+
linode-cli obj --cluster us-southeast-1 put "${filename}" dx-test-results
53+
env:
54+
LINODE_CLI_TOKEN: ${{ secrets.SHARED_DX_TOKEN }}
55+
LINODE_CLI_OBJ_ACCESS_KEY: ${{ secrets.LINODE_CLI_OBJ_ACCESS_KEY }}
56+
LINODE_CLI_OBJ_SECRET_KEY: ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}

.github/workflows/publish-wiki.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish Wiki
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Generate App Installation Token
14+
id: generate_token
15+
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 # pin@v1
16+
with:
17+
app_id: ${{ secrets.CLI_RELEASE_APP_ID }}
18+
private_key: ${{ secrets.CLI_RELEASE_PRIVATE_KEY }}
19+
repository: linode/linode-cli
20+
21+
- name: Upload Documentation to Wiki
22+
uses: SwiftDocOrg/github-wiki-publish-action@v1
23+
with:
24+
path: "wiki"
25+
env:
26+
GH_PERSONAL_ACCESS_TOKEN: ${{ steps.generate_token.outputs.token }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ clean:
5151
.PHONY: testunit
5252
testunit: export LINODE_CLI_TEST_MODE = 1
5353
testunit:
54-
pytest tests/unit
54+
pytest -v tests/unit
5555

5656
.PHONY: testint
5757
testint:

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# linode-cli (lin)
2+
3+
The Linode Command Line Interface
4+
5+
Provides easy access to any of the Linode API endpoints from the command line and displays results in an organized, configurable table.
6+
7+
This project is automatically generated from the [Linode OpenAPI spec](https://www.linode.com/docs/api/) using the [openapi3 Python package](https://github.com/Dorthu/openapi3).
8+
9+
![Example of CLI in use](https://raw.githubusercontent.com/linode/linode-cli/main/demo.gif)
10+
11+
Visit the [Wiki](../../wiki) for more information.
12+
13+
## Install
14+
15+
Install via PyPI:
16+
```bash
17+
pip3 install linode-cli
18+
```
19+
20+
Visit the [Wiki](../../wiki/Installation) for more information.
21+
22+
## Contributing
23+
24+
This CLI is generated from the [OpenAPI specification for Linode's API](https://github.com/linode/linode-api-docs). As
25+
such, many changes are made directly to the spec.
26+
27+
Please follow the [Contributing Guidelines](https://github.com/linode/linode-cli/blob/main/CONTRIBUTING.md) when making a contribution.

0 commit comments

Comments
 (0)