Sha256: e3dcb49f958e9e14a8fddc36d1bce3a2d46979e48156b17ae653e1f3f7da00a0

Contents?: true

Size: 1.47 KB

Versions: 7

Compression:

Stored size: 1.47 KB

Contents

name: Runs lint and unit tests

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  test:
    strategy:
      fail-fast: false
      matrix:
        ruby: [2.6, 2.7, 3.0]

    runs-on: ubuntu-latest

    env:
      UNIT_TEST: true

    steps:
    - uses: actions/checkout@v2
    - name: Set up Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: ${{ matrix.ruby }}
    - name: Install dependencies
      run: bundle install
    - name: Run tests
      run: |
        bundle exec rake rubocop
        bundle exec rake test:unit
        AUTOMATION_NAME_DROID=espresso bundle exec rake test:unit:android
        AUTOMATION_NAME_DROID=appium AUTOMATION_NAME_IOS=appium bundle exec rake test:unit

  test-win:
    strategy:
      fail-fast: false
      matrix:
        ruby: [2.6, 2.7, 3.0]

    runs-on: windows-latest

    env:
      UNIT_TEST: true

    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - name: Install dependencies
        run: |
          gem install ffi
          bundle install
          gem uninstall --force eventmachine && gem install eventmachine --platform ruby
      - name: Run tests
        run: |
          rake test:unit

          setx AUTOMATION_NAME_DROID espresso
          rake test:unit:android

          setx AUTOMATION_NAME_DROID appium
          setx AUTOMATION_NAME_IOS appium
          rake test:unit

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
appium_lib_core-5.0.3 .github/workflows/unittest.yml
appium_lib_core-5.0.2 .github/workflows/unittest.yml
appium_lib_core-5.0.1 .github/workflows/unittest.yml
appium_lib_core-5.0.0 .github/workflows/unittest.yml
appium_lib_core-5.0.0.rc8 .github/workflows/unittest.yml
appium_lib_core-5.0.0.rc7 .github/workflows/unittest.yml
appium_lib_core-5.0.0.rc6 .github/workflows/unittest.yml