.github/workflows/unit.yml in watir-7.1.0 vs .github/workflows/unit.yml in watir-7.2.0
- old
+ new
@@ -1,52 +1,60 @@
name: Unit Tests
on:
+ - workflow_dispatch
- push
- pull_request
jobs:
documentation-test:
name: Yard Doctest
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: ruby/setup-ruby@v1
+ - 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.6
- - run: bundle install
- - uses: ./.github/actions/install-chrome
- - uses: ./.github/actions/setup-linux
- - run: |
- bundle exec rake yard:doctest
+ 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.6', '2.7', '3.0']
+ ruby: ['2.7', '3.0', '3.1']
steps:
- - uses: actions/checkout@v2
- - uses: ruby/setup-ruby@v1
+ - name: Checkout source tree
+ uses: actions/checkout@v2
+ - name: Install Ruby
+ uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- - run: bundle install
- - uses: ./.github/actions/install-chrome
- - uses: ./.github/actions/setup-linux
- - run: |
- bundle exec rake spec:unit
- env:
- DISPLAY: :99
+ - name: Install gems
+ run: bundle install
+ - run: bundle exec rake spec:unit
linter-test:
name: Rubocop Tests
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - uses: ruby/setup-ruby@v1
+ - name: Checkout source tree
+ uses: actions/checkout@v2
+ - name: Install Ruby
+ uses: ruby/setup-ruby@v1
with:
- ruby-version: 2.6
- - run: bundle install
+ ruby-version: 2.7
+ - name: Install gems
+ run: bundle install
- run: bundle exec rubocop