2022-08-18 16:32:29 +03:00
|
|
|
name: Integration tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2022-08-19 17:42:03 +03:00
|
|
|
- cron: '0 2 * * 1-5'
|
2022-08-18 16:32:29 +03:00
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
integration_tests:
|
|
|
|
name: Integration Tests
|
2023-05-15 15:42:40 +02:00
|
|
|
runs-on: macos-13
|
2022-08-18 16:32:29 +03:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
# Only allow a single run of this workflow on each branch, automatically cancelling older runs.
|
|
|
|
group: integration-tests-${{ github.head_ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: vendor/bundle
|
|
|
|
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gems-
|
|
|
|
|
2023-02-13 14:53:01 +02:00
|
|
|
- name: Setup environment
|
|
|
|
run:
|
|
|
|
source ci_scripts/ci_common.sh && setup_github_actions_environment
|
2022-08-18 16:32:29 +03:00
|
|
|
|
|
|
|
- name: Run tests
|
|
|
|
run: bundle exec fastlane integration_tests
|
|
|
|
env:
|
|
|
|
INTEGRATION_TESTS_HOST: ${{ secrets.INTEGRATION_TESTS_HOST }}
|
|
|
|
INTEGRATION_TESTS_USERNAME: ${{ secrets.INTEGRATION_TESTS_USERNAME }}
|
|
|
|
INTEGRATION_TESTS_PASSWORD: ${{ secrets.INTEGRATION_TESTS_PASSWORD }}
|
2023-05-15 15:42:40 +02:00
|
|
|
|
|
|
|
- name: Archive artifacts
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
name: test-output
|
|
|
|
path: fastlane/test_output
|
|
|
|
retention-days: 7
|
|
|
|
if-no-files-found: ignore
|
2022-08-18 16:32:29 +03:00
|
|
|
|
2022-12-08 10:09:18 +02:00
|
|
|
- name: Upload coverage to Codecov
|
|
|
|
uses: codecov/codecov-action@v3
|
|
|
|
with:
|
|
|
|
flags: integrationtests
|
|
|
|
|