diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml new file mode 100644 index 0000000..0c71d35 --- /dev/null +++ b/.github/workflows/unit.yml @@ -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 diff --git a/.gitignore b/.gitignore index 7692abf..3b59b8c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ *.gem Gemfile.lock .rspec +.DS_STORE \ No newline at end of file