зеркало из https://github.com/mozilla/ssh_scan.git
Merge pull request #534 from mozilla/move_gem_integration_tests
Add gem integration tests as GitHub Action
This commit is contained in:
Коммит
cd10e87aee
|
@ -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
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче