Merge pull request #534 from mozilla/move_gem_integration_tests

Add gem integration tests as GitHub Action
This commit is contained in:
Jonathan Claudius 2021-05-21 10:59:03 -04:00 коммит произвёл GitHub
Родитель f8b72147c5 bdf306729b
Коммит cd10e87aee
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 24 добавлений и 8 удалений

23
.github/workflows/gem-integration-tests.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,23 @@
name: Ruby
on: [ push ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ./.github/actions/setup-ruby-1.71.0
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Install ssh_scan gem
run: gem install ssh_scan
- name: Set permissions for execution
run: chmod 755 ./spec/ssh_scan/integration.sh
- name: Ruby Integration Tests
run: ./spec/ssh_scan/integration.sh

9
.github/workflows/unit-tests.yml поставляемый
Просмотреть файл

@ -1,10 +1,3 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
name: Ruby
on: [ push ]
@ -21,6 +14,6 @@ jobs:
uses: ./.github/actions/setup-ruby-1.71.0
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
bundler-cache: true
- name: Run tests
run: bundle exec rake