From 0b01634eabbeb9b9cfedca6735951411b5a058f2 Mon Sep 17 00:00:00 2001 From: Jakub Polak Date: Wed, 20 Dec 2023 00:53:59 +0100 Subject: [PATCH] Add a basic github action with the build --- .github/workflows/ruby.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..5c1171a --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,24 @@ +name: Ruby + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0 + with: + ruby-version: '3.0' + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: rspec spec