From f59b3b42974fda3396b480d00b89e28369e72442 Mon Sep 17 00:00:00 2001 From: Alexandre Chakroun <11556013+alxckn@users.noreply.github.com> Date: Sat, 6 Apr 2024 17:16:00 +0200 Subject: [PATCH] chore: set up automated CI for tests (#15) Signed-off-by: Alexandre Chakroun <11556013+alxckn@users.noreply.github.com> Signed-off-by: Alexandre Chakroun --- .github/workflows/ruby.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ruby.yml diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..056ba98 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,37 @@ +# 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: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + test_flagd_provider: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./providers/openfeature-flagd-provider + strategy: + matrix: + ruby-version: ['3.1'] + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + working-directory: ./providers/openfeature-flagd-provider + - name: Run tests + run: bundle exec rspec