Skip to content

Commit cebd768

Browse files
committed
Remove cache and integration test options
We change mind that these options are not needed to expose. This commit enables cache always and let the environment variable decide whether integration test is needed.
1 parent 6b6f030 commit cebd768

File tree

4 files changed

+3
-40
lines changed

4 files changed

+3
-40
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,12 @@ jobs:
5757
steps:
5858
- uses: actions/checkout@v3
5959
- uses: ./
60-
with:
61-
install-cli-integration-test: 'true'
60+
env:
61+
AUTIFY_CLI_INTEGRATION_TEST_INSTALL: 1
6262
- run: |
6363
echo token | autify web auth login
6464
echo token | autify mobile auth login
6565
autify connect client install
6666
env:
6767
AUTIFY_CONNECT_CLIENT_MODE: fake
6868
- run: autify-cli-integration-test
69-
70-
test-use-cache:
71-
runs-on: ubuntu-latest
72-
steps:
73-
- uses: actions/checkout@v3
74-
- uses: ./
75-
with:
76-
use-cache: 'true'
77-
- uses: ./
78-
with:
79-
use-cache: 'true'

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,6 @@ shell-installer-url:
2727
description: "Shell installer URL"
2828
# TODO: Use stable
2929
default: "https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/beta/install-cicd.bash"
30-
use-cache:
31-
required: false
32-
description: "Use cached CLI installed by previous steps if existing."
33-
default: "false"
34-
install-cli-integration-test:
35-
required: false
36-
description: "Install autify-cli-integration-test package as well."
37-
default: "false"
3830
```
3931
4032
### v1

action.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ inputs:
88
description: 'Shell installer URL'
99
# TODO: Use stable
1010
default: "https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/beta/install-cicd.bash"
11-
use-cache:
12-
required: false
13-
description: 'Use cached CLI installed by previous steps if existing.'
14-
default: 'false'
15-
install-cli-integration-test:
16-
required: false
17-
description: 'Install autify-cli-integration-test package as well.'
18-
default: 'false'
1911

2012
runs:
2113
using: 'composite'
@@ -26,7 +18,5 @@ runs:
2618
shell: bash
2719
env:
2820
INPUT_SHELL_INSTALLER_URL: ${{ inputs.shell-installer-url }}
29-
INPUT_USE_CACHE: ${{ inputs.use-cache }}
30-
INPUT_INSTALL_CLI_INTEGRATION_TEST: ${{ inputs.install-cli-integration-test }}
3121
- run: autify --version
3222
shell: bash

script.bash

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@
22
set -xe
33

44
: "${INPUT_SHELL_INSTALLER_URL:?"Provide the installer URL"}"
5-
: "${INPUT_USE_CACHE:?"Provide true or false"}"
6-
: "${INPUT_INSTALL_CLI_INTEGRATION_TEST:?"Provide true or false"}"
7-
8-
if [ "$INPUT_USE_CACHE" == "true" ]; then
9-
export AUTIFY_CLI_INSTALL_USE_CACHE=1
10-
fi
11-
if [ "$INPUT_INSTALL_CLI_INTEGRATION_TEST" == "true" ]; then
12-
export AUTIFY_CLI_INTEGRATION_TEST_INSTALL=1
13-
fi
145

156
cd "$RUNNER_TEMP"
7+
export AUTIFY_CLI_INSTALL_USE_CACHE=1
168
curl -L "$INPUT_SHELL_INSTALLER_URL" | bash -xe
179

1810
cat "$RUNNER_TEMP/autify/path" >> "$GITHUB_PATH"

0 commit comments

Comments
 (0)