Skip to content

Commit 39b3671

Browse files
committed
Add nightly test
1 parent 3446d57 commit 39b3671

File tree

4 files changed

+60
-22
lines changed

4 files changed

+60
-22
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 'Integration test'
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
shell-installer-url:
7+
type: string
8+
required: true
9+
10+
jobs:
11+
test:
12+
strategy:
13+
matrix:
14+
os:
15+
- ubuntu-latest
16+
- macos-latest
17+
- windows-latest
18+
fail-fast: false
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-node@v3
23+
- uses: ./
24+
with:
25+
shell-installer-url: ${{ inputs.shell-installer-url }}
26+
env:
27+
AUTIFY_CLI_INTEGRATION_TEST_INSTALL: 1
28+
- run: |
29+
echo token | autify web auth login
30+
echo token | autify mobile auth login
31+
autify connect client install
32+
env:
33+
AUTIFY_CONNECT_CLIENT_MODE: fake
34+
- run: autify-cli-integration-test
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: 'Nightly beta test'
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch:
6+
7+
jobs:
8+
beta:
9+
uses: ./.github/workflows/integration-test.yml
10+
with:
11+
shell-installer-url: https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/beta/install-cicd.bash

.github/workflows/nightly-test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: 'Nightly test'
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch:
6+
7+
jobs:
8+
stable:
9+
uses: ./.github/workflows/integration-test.yml
10+
with:
11+
shell-installer-url: https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/stable/install-cicd.bash

.github/workflows/test.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -57,25 +57,7 @@ jobs:
5757
echo token | autify web auth login
5858
shell: pwsh
5959
60-
test-integration-test:
61-
strategy:
62-
matrix:
63-
os:
64-
- ubuntu-latest
65-
- macos-latest
66-
- windows-latest
67-
fail-fast: false
68-
runs-on: ${{ matrix.os }}
69-
steps:
70-
- uses: actions/checkout@v3
71-
- uses: actions/setup-node@v3
72-
- uses: ./
73-
env:
74-
AUTIFY_CLI_INTEGRATION_TEST_INSTALL: 1
75-
- run: |
76-
echo token | autify web auth login
77-
echo token | autify mobile auth login
78-
autify connect client install
79-
env:
80-
AUTIFY_CONNECT_CLIENT_MODE: fake
81-
- run: autify-cli-integration-test
60+
integration-test:
61+
uses: ./.github/workflows/integration-test.yml
62+
with:
63+
shell-installer-url: https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/stable/install-cicd.bash

0 commit comments

Comments
 (0)