Skip to content

Commit

Permalink
Add nightly test
Browse files Browse the repository at this point in the history
  • Loading branch information
riywo committed Sep 28, 2022
1 parent 3446d57 commit 39b3671
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 22 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Integration test'

on:
workflow_call:
inputs:
shell-installer-url:
type: string
required: true

jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: ./
with:
shell-installer-url: ${{ inputs.shell-installer-url }}
env:
AUTIFY_CLI_INTEGRATION_TEST_INSTALL: 1
- run: |
echo token | autify web auth login
echo token | autify mobile auth login
autify connect client install
env:
AUTIFY_CONNECT_CLIENT_MODE: fake
- run: autify-cli-integration-test
11 changes: 11 additions & 0 deletions .github/workflows/nightly-beta-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Nightly beta test'
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
beta:
uses: ./.github/workflows/integration-test.yml
with:
shell-installer-url: https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/beta/install-cicd.bash
11 changes: 11 additions & 0 deletions .github/workflows/nightly-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'Nightly test'
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
stable:
uses: ./.github/workflows/integration-test.yml
with:
shell-installer-url: https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/stable/install-cicd.bash
26 changes: 4 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,7 @@ jobs:
echo token | autify web auth login
shell: pwsh
test-integration-test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: ./
env:
AUTIFY_CLI_INTEGRATION_TEST_INSTALL: 1
- run: |
echo token | autify web auth login
echo token | autify mobile auth login
autify connect client install
env:
AUTIFY_CONNECT_CLIENT_MODE: fake
- run: autify-cli-integration-test
integration-test:
uses: ./.github/workflows/integration-test.yml
with:
shell-installer-url: https://autify-cli-assets.s3.amazonaws.com/autify-cli/channels/stable/install-cicd.bash

0 comments on commit 39b3671

Please sign in to comment.