mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-12 23:05:56 +00:00
Add unit test workflow
This commit is contained in:
27
.github/workflows/unit.yml
vendored
Normal file
27
.github/workflows/unit.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Unit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [UTI-2583--adapt-haste-client-to-new-api]
|
||||
|
||||
jobs:
|
||||
unit_tests:
|
||||
name: Unit tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 3.0.0
|
||||
|
||||
- name: Run bundle install
|
||||
run: |
|
||||
gem install bundler
|
||||
bundle install --jobs 4 --retry 3
|
||||
|
||||
- name: Build and test with rspec
|
||||
run: bundle exec rspec spec
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
||||
*.gem
|
||||
Gemfile.lock
|
||||
.rspec
|
||||
.DS_STORE
|
||||
Reference in New Issue
Block a user