Sha256: 7a3cfd218095b1179201b02a788da4f23856c9bf19fefdb28a0159fcea7dc75a

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 KB

Contents

name: Unit Tests

on:
  - workflow_dispatch
  - push
  - pull_request

jobs:
  documentation-test:
    name: Yard Doctest
    runs-on: ubuntu-latest
    steps:
      - name: Checkout source tree
        uses: actions/checkout@v2
      - name: Setup Fluxbox
        run: sudo apt-get -y install fluxbox
      - name: Start XVFB
        run: Xvfb :99 -screen 0 1920x1280x24 > /dev/null 2>&1 &
      - name: Start Fluxbox
        run: fluxbox -display :99 &
      - name: Install Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.7
      - name: Install gems
        run: bundle install
      - name: Run tests
        run: bundle exec rake yard:doctest

  unit-test:
    name: Unit Tests
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        ruby: ['2.7', '3.0', '3.1']
    steps:
      - name: Checkout source tree
        uses: actions/checkout@v2
      - name: Install Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: ${{ matrix.ruby }}
      - name: Install gems
        run: bundle install
      - run: bundle exec rake spec:unit

  linter-test:
    name: Rubocop Tests
    runs-on: ubuntu-latest
    steps:
      - name: Checkout source tree
        uses: actions/checkout@v2
      - name: Install Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.7
      - name: Install gems
        run: bundle install
      - run: bundle exec rubocop

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
watir-7.2.0 .github/workflows/unit.yml